Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Closed bug #2209

Don't replace & if it's part of encoded character.
  • Loading branch information...
commit e80c7d5d1529547c9cfbfd4d62323513a9d70163 1 parent 693f6eb
paca70 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/wiki/ewiki/ewiki.php
View
2  mod/wiki/ewiki/ewiki.php
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.