From: Brion Vibber Date: Mon, 22 Dec 2003 04:14:33 +0000 (+0000) Subject: change wfEscapeWikiText() to escape the pipe | character. This was breaking X-Git-Tag: 1.3.0beta1~1220 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=712ee46ba463aed09a024721b4b5ab10a0b56575;p=lhc%2Fweb%2Fwiklou.git change wfEscapeWikiText() to escape the pipe | character. This was breaking {{MSGNW:foo}} inside a wiki-syntax table. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5920efee8b..91959f410f 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -642,8 +642,8 @@ function wfCheckLimits( $deflimit = 50, $optionname = "rclimit" ) { function wfEscapeWikiText( $text ) { $text = str_replace( - array( '[', "'", 'ISBN ' , '://' , "\n=" ), - array( '[', ''', 'ISBN ', '://' , "\n=" ), + array( '[', '|', "'", 'ISBN ' , '://' , "\n=" ), + array( '[', '|', ''', 'ISBN ', '://' , "\n=" ), htmlspecialchars($text) ); return $text; }