From 977b6fcf227d6cadada10ad20aec4528b83e8ffb Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 10 Jul 2007 01:32:30 +0000 Subject: [PATCH] (bug 10413) DISPLAYTITLE doesn't escape HTML entities, causing the displayed title to a) be wrong and b) not normalize to the actual title. No RELEASE-NOTES because this feature was only added this release anyway. Patch based on one by WebBoy. --- includes/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CoreParserFunctions.php b/includes/CoreParserFunctions.php index 2f9b1e2fda..261452aa29 100644 --- a/includes/CoreParserFunctions.php +++ b/includes/CoreParserFunctions.php @@ -107,7 +107,7 @@ class CoreParserFunctions { * @return string */ static function displaytitle( $parser, $text = '' ) { - $text = trim( $text ); + $text = trim( Sanitizer::decodeCharReferences( $text ) ); $title = Title::newFromText( $text ); if( $title instanceof Title && $title->getFragment() == '' && $title->equals( $parser->mTitle ) ) $parser->mOutput->setDisplayTitle( $text ); -- 2.20.1