Skip to content

Commit 447b611

Browse files
committed
fixing the ampersands broke escaping the other characters ... this should help
1 parent 4ca1210 commit 447b611

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

generate/lib/functions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ function convertToFilename($string, $translation = false)
198198

199199
function chars($string)
200200
{
201+
$string = str_replace('& ', '& ', $string);
202+
$string = str_replace('&&', '&&', $string);
201203
$string = str_replace(' > ', ' > ', $string);
202204
$string = str_replace(' < ', ' &lt; ', $string);
203205
$string = str_replace('<<', '&lt;&lt;', $string);
204206
$string = str_replace('>>', '&gt;&gt;', $string);
205-
$string = str_replace('& ', '&amp; ', $string);
206-
$string = str_replace('&&', '&amp;&amp;', $string);
207207
$string = stripslashes($string);
208208
return $string;
209209
}

0 commit comments

Comments
 (0)