Don't expand templates in html <title>. This seems to have regressed some time ago.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 7 Jan 2012 09:56:14 +0000 (09:56 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 7 Jan 2012 09:56:14 +0000 (09:56 +0000)
includes/OutputPage.php

index ee1ee4f..70d0dd7 100644 (file)
@@ -813,7 +813,7 @@ class OutputPage extends ContextSource {
                $this->mPagetitle = $nameWithTags;
 
                # change "<i>foo&amp;bar</i>" to "foo&bar"
-               $this->setHTMLTitle( $this->msg( 'pagetitle', Sanitizer::stripAllTags( $nameWithTags ) ) );
+               $this->setHTMLTitle( $this->msg( 'pagetitle' )->rawParams( htmlspecialchars( Sanitizer::stripAllTags( $nameWithTags ) ) ) );
        }
 
        /**