In wfEscapeWikiText(), add "}}" to the list of things to escape, for callers that...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Nov 2010 02:39:04 +0000 (02:39 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Nov 2010 02:39:04 +0000 (02:39 +0000)
includes/GlobalFunctions.php

index 4a714d1..80b15a3 100644 (file)
@@ -1287,8 +1287,10 @@ function wfCheckLimits( $deflimit = 50, $optionname = 'rclimit' ) {
  */
 function wfEscapeWikiText( $text ) {
        $text = str_replace(
-               array( '[',     '|',      ']',     '\'',    'ISBN ',     'RFC ',     '://',     "\n=",     '{{' ), # }}
-               array( '&#91;', '&#124;', '&#93;', '&#39;', 'ISBN&#32;', 'RFC&#32;', '&#58;//', "\n&#61;", '&#123;&#123;' ),
+               array( '[',     '|',      ']',     '\'',    'ISBN ',     
+                       'RFC ',     '://',     "\n=",     '{{',           '}}' ),
+               array( '&#91;', '&#124;', '&#93;', '&#39;', 'ISBN&#32;', 
+                       'RFC&#32;', '&#58;//', "\n&#61;", '&#123;&#123;', '&#125;&#125;' ),
                htmlspecialchars( $text )
        );
        return $text;