Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1176,7 +1176,7 @@ |
1177 | 1177 | )); |
1178 | 1178 | $titleObj = SpecialPage::getTitleFor( 'Booksources', $num ); |
1179 | 1179 | return'<a href="' . |
1180 | | - $titleObj->escapeLocalUrl() . |
| 1180 | + htmlspecialchars( $titleObj->getLocalUrl() ) . |
1181 | 1181 | "\" class=\"internal mw-magiclink-isbn\">ISBN $isbn</a>"; |
1182 | 1182 | } else { |
1183 | 1183 | return $m[0]; |
Index: trunk/phase3/includes/api/ApiFormatXml.php |
— | — | @@ -201,7 +201,7 @@ |
202 | 202 | $this->setWarning( 'Stylesheet should have .xsl extension.' ); |
203 | 203 | return; |
204 | 204 | } |
205 | | - $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' ); |
| 205 | + $this->printText( '<?xml-stylesheet href="' . htmlspecialchars( $nt->getLocalURL( 'action=raw' ) ) . '" type="text/xsl" ?>' ); |
206 | 206 | } |
207 | 207 | |
208 | 208 | public function getAllowedParams() { |
Index: trunk/phase3/includes/SkinLegacy.php |
— | — | @@ -247,7 +247,7 @@ |
248 | 248 | } |
249 | 249 | $s = $wgLang->pipeList( array( |
250 | 250 | $s, |
251 | | - '<a href="' . $title->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>' |
| 251 | + '<a href="' . htmlspecialchars( $title->getLocalURL( 'variant=' . $code ) ) . '">' . htmlspecialchars( $varname ) . '</a>' |
252 | 252 | ) ); |
253 | 253 | } |
254 | 254 | } |
Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -278,7 +278,7 @@ |
279 | 279 | |
280 | 280 | $queryparams = $namespace ? "namespace=$namespace&" : ''; |
281 | 281 | $special = $this->getTitle(); |
282 | | - $link = $special->escapeLocalUrl( $queryparams . 'from=' . urlencode($inpoint) . '&to=' . urlencode($outpoint) ); |
| 282 | + $link = htmlspecialchars( $special->getLocalUrl( $queryparams . 'from=' . urlencode($inpoint) . '&to=' . urlencode($outpoint) ) ); |
283 | 283 | |
284 | 284 | $out = $this->msg( 'alphaindexline' )->rawParams( |
285 | 285 | "<a href=\"$link\">$inpointf</a></td><td>", |