Duplicated id values in inline codes for composite fragment in PHP filter

Issue #205 resolved
Former user created an issue

Original [issue 205](https://code.google.com/p/okapi/issues/detail?id=205) created by @ysavourel on 2012-01-24T13:23:13.000Z:

When we have composite fragment such as:

array( "activation\_text\_2" => "<ul>". "<li>xyz® aktivieren. <span class=
"redbold
">»</span> <a href=
"".$\_CONFIG["site"]["default\_page"]."?tpl=new\_xyz
">weiter</a></li>". "<li>Fund melden. <span class=
"redbold
">»</span> <a href=
"".$\_CONFIG["site"]["default\_page"]."?tpl=found
">weiter</a></li>". "<li>Im Shop einkaufen. <span class=
"redbold
">»</span> <a href=
"".$\_CONFIG["site"]["default\_page"]."?tpl=onlineshop
">weiter</a></li></ul>" );

we get:

<ph id="1">&lt;li></ph>xyz® aktivieren. <ph id="2">&lt;span class=
"redbold
"></ph>»<ph id="3">&lt;/span></ph> <ph id="4">&lt;a href=
"</ph><ph id="1">".$\_CONFIG["site"]["default\_page"]."</ph><ph id="5">?tpl=new\_xyz
"></ph>weiter<ph id="6">&lt;/a></ph><ph id="7">&lt;/li></ph><ph id="5">".

"</ph><ph id="8">&lt;li></ph>Fund melden. <ph id="9">&lt;span class=
"redbold
"></ph>»<ph id="10">&lt;/span></ph> <ph id="11">&lt;a href=
"</ph><ph id="8">".$\_CONFIG["site"]["default\_page"]."</ph><ph id="12">?tpl=found
"></ph>weiter<ph id="13">&lt;/a></ph><ph id="14">&lt;/li></ph><ph id="12">".

"</ph><ph id="15">&lt;li></ph>Im Shop einkaufen. <ph id="16">&lt;span class=
"redbold
"></ph>»<ph id="17">&lt;/span></ph> <ph id="18">&lt;a href=
"</ph><ph id="15">".$\_CONFIG["site"]["default\_page"]."</ph><ph id="19">?tpl=onlineshop
"></ph>weiter<ph id="20">&lt;/a></ph><ph id="21">&lt;/li></ph><ph id="22">&lt;/ul></ph>

where ph id='1' is duplicated.

Comments (1)

  1. Log in to comment