Don't replace & if it's part of encoded character.
This commit is contained in:
paca70 2004-11-23 21:29:21 +00:00
parent 693f6eb5cf
commit e80c7d5d15

View file

@ -860,7 +860,7 @@ function ewiki_script($asid="", $id=false, $params="", $bin=0, $html=1, $script=
#-- fin
if ($html) {
$url = str_replace("&", "&", $url);
$url = preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/","¨", $url);
}
return($url);
}