Fix double-escaping in 108312
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 9 Jan 2012 00:15:38 +0000 (00:15 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 9 Jan 2012 00:15:38 +0000 (00:15 +0000)
includes/OutputPage.php

index f691a0c..4114efc 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' )->rawParams( htmlspecialchars( Sanitizer::stripAllTags( $nameWithTags ) ) ) );
+               $this->setHTMLTitle( $this->msg( 'pagetitle' )->rawParams( Sanitizer::stripAllTags( $nameWithTags ) )->escaped() );
        }
 
        /**