https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108312

Revision: 108312
Author:   nikerabbit
Date:     2012-01-07 09:56:14 +0000 (Sat, 07 Jan 2012)
Log Message:
-----------
Don't expand templates in html <title>. This seems to have regressed some time 
ago.

Modified Paths:
--------------
    trunk/phase3/includes/OutputPage.php

Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php        2012-01-07 09:27:28 UTC (rev 
108311)
+++ trunk/phase3/includes/OutputPage.php        2012-01-07 09:56:14 UTC (rev 
108312)
@@ -813,7 +813,7 @@
                $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 ) ) ) );
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to