X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMIMEsearch.php;h=e8e5ea0d06b76a248acf20baaf9a57581d43f8cf;hb=3599ce72b0fe2594bd3ae8c902555040b8a91d28;hp=18c163e138ab448d82932424b16d728845e4fa70;hpb=b79bc0a2740b991525aae355ed216e0b9dc3aa86;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMEsearch.php index 18c163e138..e8e5ea0d06 100644 --- a/includes/specials/SpecialMIMEsearch.php +++ b/includes/specials/SpecialMIMEsearch.php @@ -132,6 +132,7 @@ class MIMEsearchPage extends QueryPage { ->setMethod( 'get' ) ->prepareForm() ->displayForm( false ); + return ''; } protected function getSuggestionsForTypes() { @@ -186,10 +187,11 @@ class MIMEsearchPage extends QueryPage { function formatResult( $skin, $result ) { $linkRenderer = $this->getLinkRenderer(); $nt = Title::makeTitle( $result->namespace, $result->title ); - $text = MediaWikiServices::getInstance()->getContentLanguage()->convert( $nt->getText() ); + $text = MediaWikiServices::getInstance()->getContentLanguage() + ->convert( htmlspecialchars( $nt->getText() ) ); $plink = $linkRenderer->makeLink( Title::newFromText( $nt->getPrefixedText() ), - $text + new HtmlArmor( $text ) ); $download = Linker::makeMediaLinkObj( $nt, $this->msg( 'download' )->escaped() );