From 4544a783168f3f30f7078074b0335fce13929934 Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Tue, 13 Dec 2011 04:58:48 +0000 Subject: [PATCH] rem use of escapeLocalURL --- includes/SkinLegacy.php | 2 +- includes/api/ApiFormatXml.php | 2 +- includes/parser/Parser.php | 2 +- includes/specials/SpecialAllpages.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/SkinLegacy.php b/includes/SkinLegacy.php index f5bc9bfa76..56b2436425 100644 --- a/includes/SkinLegacy.php +++ b/includes/SkinLegacy.php @@ -247,7 +247,7 @@ class LegacyTemplate extends BaseTemplate { } $s = $wgLang->pipeList( array( $s, - '' . htmlspecialchars( $varname ) . '' + '' . htmlspecialchars( $varname ) . '' ) ); } } diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 054784b1a4..8f4abc1533 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -201,7 +201,7 @@ class ApiFormatXml extends ApiFormatBase { $this->setWarning( 'Stylesheet should have .xsl extension.' ); return; } - $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' ); + $this->printText( 'getLocalURL( 'action=raw' ) ) . '" type="text/xsl" ?>' ); } public function getAllowedParams() { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c3d8aa389c..ca02d6b756 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1176,7 +1176,7 @@ class Parser { )); $titleObj = SpecialPage::getTitleFor( 'Booksources', $num ); return'ISBN $isbn"; } else { return $m[0]; diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index bd83b55c0f..fb87e2ae97 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -278,7 +278,7 @@ class SpecialAllpages extends IncludableSpecialPage { $queryparams = $namespace ? "namespace=$namespace&" : ''; $special = $this->getTitle(); - $link = $special->escapeLocalUrl( $queryparams . 'from=' . urlencode($inpoint) . '&to=' . urlencode($outpoint) ); + $link = htmlspecialchars( $special->getLocalUrl( $queryparams . 'from=' . urlencode($inpoint) . '&to=' . urlencode($outpoint) ) ); $out = $this->msg( 'alphaindexline' )->rawParams( "$inpointf", -- 2.20.1