summaryrefslogtreecommitdiff
path: root/includes/parser
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-04-16 05:29:15 +0200
committerPierre Schmitz <pierre@archlinux.de>2013-04-16 05:29:15 +0200
commitd43bf442ab472de9ad9db6b62e9f7b02e580f466 (patch)
treeff4eeb631d4b5cce4789df92c905cc42b106a63d /includes/parser
parent0edd6983ba69e8195fa7cade96eca27df9ebf237 (diff)
Update to MediaWiki 1.20.4
Diffstat (limited to 'includes/parser')
-rw-r--r--includes/parser/Parser.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 2a24bee7..10765de2 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -490,6 +490,11 @@ class Parser {
"Highest expansion depth: {$this->mHighestExpansionDepth}/{$this->mOptions->getMaxPPExpandDepth()}\n".
$PFreport;
wfRunHooks( 'ParserLimitReport', array( $this, &$limitReport ) );
+
+ // Sanitize for comment. Note '‐' in the replacement is U+2010,
+ // which looks much like the problematic '-'.
+ $limitReport = str_replace( array( '-', '&' ), array( '‐', '&amp;' ), $limitReport );
+
$text .= "\n<!-- \n$limitReport-->\n";
}
$this->mOutput->setText( $text );