rem use of escapeLocalURL
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 13 Dec 2011 04:58:48 +0000 (04:58 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 13 Dec 2011 04:58:48 +0000 (04:58 +0000)
includes/SkinLegacy.php
includes/api/ApiFormatXml.php
includes/parser/Parser.php
includes/specials/SpecialAllpages.php

index f5bc9bf..56b2436 100644 (file)
@@ -247,7 +247,7 @@ class LegacyTemplate extends BaseTemplate {
                                }
                                $s = $wgLang->pipeList( array(
                                        $s,
-                                       '<a href="' . $title->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
+                                       '<a href="' . htmlspecialchars( $title->getLocalURL( 'variant=' . $code ) ) . '">' . htmlspecialchars( $varname ) . '</a>'
                                ) );
                        }
                }
index 054784b..8f4abc1 100644 (file)
@@ -201,7 +201,7 @@ class ApiFormatXml extends ApiFormatBase {
                        $this->setWarning( 'Stylesheet should have .xsl extension.' );
                        return;
                }
-               $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' );
+               $this->printText( '<?xml-stylesheet href="' . htmlspecialchars( $nt->getLocalURL( 'action=raw' ) ) . '" type="text/xsl" ?>' );
        }
 
        public function getAllowedParams() {
index c3d8aa3..ca02d6b 100644 (file)
@@ -1176,7 +1176,7 @@ class Parser {
                        ));
                        $titleObj = SpecialPage::getTitleFor( 'Booksources', $num );
                        return'<a href="' .
-                               $titleObj->escapeLocalUrl() .
+                               htmlspecialchars( $titleObj->getLocalUrl() ) .
                                "\" class=\"internal mw-magiclink-isbn\">ISBN $isbn</a>";
                } else {
                        return $m[0];
index bd83b55..fb87e2a 100644 (file)
@@ -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(
                        "<a href=\"$link\">$inpointf</a></td><td>",