X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2FSpecialWantedcategories.php;h=5c622983606c749f2698270407540c4cfc38bfb7;hb=315df62758acb54c52f42bd3067a9ae95bcb3aa6;hp=2accef6f74e20e7607ef747e138ed2d67fe0fcee;hpb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedcategories.php index 2accef6f74..5c62298360 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedcategories.php @@ -91,7 +91,8 @@ class WantedCategoriesPage extends WantedQueryPage { */ function formatResult( $skin, $result ) { $nt = Title::makeTitle( $result->namespace, $result->title ); - $text = MediaWikiServices::getInstance()->getContentLanguage()->convert( $nt->getText() ); + $text = new HtmlArmor( MediaWikiServices::getInstance()->getContentLanguage() + ->convert( htmlspecialchars( $nt->getText() ) ) ); if ( !$this->isCached() ) { // We can assume the freshest data