(bug 10413) DISPLAYTITLE doesn't escape HTML entities, causing the displayed title...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 10 Jul 2007 01:32:30 +0000 (01:32 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 10 Jul 2007 01:32:30 +0000 (01:32 +0000)
includes/CoreParserFunctions.php

index 2f9b1e2..261452a 100644 (file)
@@ -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 );