From f3179ac00c31b4183aea7b5a979480d1d6530041 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 7 May 2007 18:01:11 +0000 Subject: [PATCH] * Escaping the title --- includes/SpecialCategories.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 7191fe9d55..fd3a51ebfd 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -53,11 +53,10 @@ class CategoryPager extends AlphabeticPager { function formatRow($result) { global $wgLang; $title = Title::makeTitle( NS_CATEGORY, $result->cl_to ); - return Xml::tags('li', null, - $this->getSkin()->makeLinkObj( $title, $title->getText() ) . ' (' . - wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), - $wgLang->formatNum( $result->count ) ) . ')' - ) . "\n"; + $titleText = $this->getSkin()->makeLinkObj( $title, htmlspecialchars( $title->getText() ) ); + $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), + $wgLang->formatNum( $result->count ) ); + return Xml::tags('li', null, "$titleText ($count)" ) . "\n"; } } -- 2.20.1