From: Niklas Laxström Date: Sat, 7 Jan 2012 09:56:14 +0000 (+0000) Subject: Don't expand templates in html . This seems to have regressed some time ago. X-Git-Tag: 1.31.0-rc.0~25453 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=412d71adf520925a23b6d81ce4922167b09fcc6c;p=lhc%2Fweb%2Fwiklou.git Don't expand templates in html <title>. This seems to have regressed some time ago. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ee1ee4f8ef..70d0dd75d8 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -813,7 +813,7 @@ class OutputPage extends ContextSource { $this->mPagetitle = $nameWithTags; # change "<i>foo&bar</i>" to "foo&bar" - $this->setHTMLTitle( $this->msg( 'pagetitle', Sanitizer::stripAllTags( $nameWithTags ) ) ); + $this->setHTMLTitle( $this->msg( 'pagetitle' )->rawParams( htmlspecialchars( Sanitizer::stripAllTags( $nameWithTags ) ) ) ); } /**