diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-04-16 05:29:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-04-16 05:29:15 +0200 |
commit | d43bf442ab472de9ad9db6b62e9f7b02e580f466 (patch) | |
tree | ff4eeb631d4b5cce4789df92c905cc42b106a63d /includes/parser/Parser.php | |
parent | 0edd6983ba69e8195fa7cade96eca27df9ebf237 (diff) |
Update to MediaWiki 1.20.4
Diffstat (limited to 'includes/parser/Parser.php')
-rw-r--r-- | includes/parser/Parser.php | 5 |
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( '‐', '&' ), $limitReport ); + $text .= "\n<!-- \n$limitReport-->\n"; } $this->mOutput->setText( $text ); |