From 3f8d6fa8f5ccd3d4bbb3ae5d437298491cb9452d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 26 Sep 2018 15:14:05 +0200 Subject: [PATCH] Fix double-wrapped HtmlArmor causing fatals Follow-up to a89ef9b3b9cc4702c0f23443ae51df4f3bed7ecb. I'm guessing this is supposed to be htmlspecialchars() based on the changes to other files in that patch (e.g. SpecialAncientpages.php). Bug: T205469 Change-Id: I52e38a5754b339e1516498e6f0eb73fc8d8df59c --- includes/specials/SpecialMostlinkedcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostlinkedcategories.php index 52300f90eb..56a701a304 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostlinkedcategories.php @@ -85,7 +85,7 @@ class MostlinkedCategoriesPage extends QueryPage { } $text = MediaWikiServices::getInstance()->getContentLanguage() - ->convert( new HtmlArmor( $nt->getText() ) ); + ->convert( htmlspecialchars( $nt->getText() ) ); $plink = $this->getLinkRenderer()->makeLink( $nt, new HtmlArmor( $text ) ); $nlinks = $this->msg( 'nmembers' )->numParams( $result->value )->escaped(); -- 2.20.1