From: Brion Vibber Date: Thu, 25 Aug 2005 04:23:13 +0000 (+0000) Subject: Revert more minor breakage from missing HTML escaping (broken June 24) X-Git-Tag: 1.6.0~1811 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=cea00ec4162299c42337b7ce168a08983a4e28d0;p=lhc%2Fweb%2Fwiklou.git Revert more minor breakage from missing HTML escaping (broken June 24) --- diff --git a/includes/Article.php b/includes/Article.php index 87bda1de85..4540e94ca9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1623,7 +1623,7 @@ class Article { wfDebug( "Article::confirmProtect\n" ); - $sub = $this->mTitle->getPrefixedText(); + $sub = htmlspecialchars( $this->mTitle->getPrefixedText() ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); $check = ''; diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 0e43897e98..162faa3360 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -67,7 +67,7 @@ class IPBlockForm { $action = $titleObj->escapeLocalURL( "action=submit" ); if ( "" != $err ) { - $wgOut->setSubtitle( wfMsg( 'formerror' ) ); + $wgOut->setSubtitle( wfMsgHtml( 'formerror' ) ); $wgOut->addHTML( "

{$err}

\n" ); }