Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Closed bug #2209

Don't replace & if it's part of encoded character.
  • Loading branch information...
commit e80c7d5d1529547c9cfbfd4d62323513a9d70163 1 parent 693f6eb
authored November 23, 2004

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

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

0 notes on commit e80c7d5

Please sign in to comment.
Something went wrong with that request. Please try again.