From: Tim Starling Date: Tue, 23 Nov 2010 02:39:04 +0000 (+0000) Subject: In wfEscapeWikiText(), add "}}" to the list of things to escape, for callers that... X-Git-Tag: 1.31.0-rc.0~33770 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7dd27a858cc4c455b466625fca0fe7fe44220912;p=lhc%2Fweb%2Fwiklou.git In wfEscapeWikiText(), add "}}" to the list of things to escape, for callers that produce template invocations, as in r77128. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4a714d19f3..80b15a3eed 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1287,8 +1287,10 @@ function wfCheckLimits( $deflimit = 50, $optionname = 'rclimit' ) { */ function wfEscapeWikiText( $text ) { $text = str_replace( - array( '[', '|', ']', '\'', 'ISBN ', 'RFC ', '://', "\n=", '{{' ), # }} - array( '[', '|', ']', ''', 'ISBN ', 'RFC ', '://', "\n=", '{{' ), + array( '[', '|', ']', '\'', 'ISBN ', + 'RFC ', '://', "\n=", '{{', '}}' ), + array( '[', '|', ']', ''', 'ISBN ', + 'RFC ', '://', "\n=", '{{', '}}' ), htmlspecialchars( $text ) ); return $text;