From dcc1b377f4117855e8846431dbe53f442052fc9f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 17 Jun 2014 09:51:03 -0700 Subject: [PATCH] Actually format search error Status objects nicely htmlspecialchars() on wikitext that's passed to addHtml()? Change-Id: I6cff09ebc052841b923bbed8b9fa02a208e7d61c --- includes/specials/SpecialSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 965885eadc..1cc5930ac7 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -412,7 +412,7 @@ class SpecialSearch extends SpecialPage { if ( $num === 0 ) { if ( $textStatus ) { $out->addHTML( '
' . - htmlspecialchars( $textStatus->getWikiText( 'search-error' ) ) . '
' ); + $textStatus->getMessage( 'search-error' ) . '' ); } else { $out->wrapWikiMsg( "

\n$1

", array( 'search-nonefound', wfEscapeWikiText( $term ) ) ); -- 2.20.1