From 7d2a81f4df3d85542470b170076eb046c6746a20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 24 Jun 2005 23:02:36 +0000 Subject: [PATCH] * Removed htmlspecialchars(), everything given to setSubtitle() now goes through the parser so this is redundant. --- includes/SpecialBlockip.php | 2 +- includes/SpecialSearch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index d5e58c653b..ea15e3891c 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -64,7 +64,7 @@ class IPBlockForm { $action = $titleObj->escapeLocalURL( "action=submit" ); if ( "" != $err ) { - $wgOut->setSubtitle( htmlspecialchars( wfMsg( 'formerror' ) ) ); + $wgOut->setSubtitle( wfMsg( 'formerror' ) ); $wgOut->addHTML( "

{$err}

\n" ); } diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 8be8d60ca5..0af2925f1a 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -224,7 +224,7 @@ class SpecialSearch { function setupPage( $term ) { global $wgOut; $wgOut->setPageTitle( wfMsg( 'searchresults' ) ); - $wgOut->setSubtitle( wfMsg( 'searchquery', htmlspecialchars( $term ) ) ); + $wgOut->setSubtitle( wfMsg( 'searchquery', $term ) ); $wgOut->setArticleRelated( false ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); } -- 2.20.1