change wfEscapeWikiText() to escape the pipe | character. This was breaking
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Dec 2003 04:14:33 +0000 (04:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Dec 2003 04:14:33 +0000 (04:14 +0000)
{{MSGNW:foo}} inside a wiki-syntax table.

includes/GlobalFunctions.php

index 5920efe..91959f4 100644 (file)
@@ -642,8 +642,8 @@ function wfCheckLimits( $deflimit = 50, $optionname = "rclimit" ) {
 function wfEscapeWikiText( $text )
 {
        $text = str_replace( 
-               array( '[',     "'",     'ISBN '    , '://'     , "\n=" ),
-               array( '&#91;', '&#39;', 'ISBN&#32;', '&#58;//' , "\n&#61;" ),
+               array( '[',     '|',      "'",     'ISBN '    , '://'     , "\n=" ),
+               array( '&#91;', '&#124;', '&#39;', 'ISBN&#32;', '&#58;//' , "\n&#61;" ),
                htmlspecialchars($text) );
        return $text;
 }