From 978c8d9b5f0f1e1b455fb3e3bfbcba6476009e91 Mon Sep 17 00:00:00 2001 From: Tobias Gritschacher Date: Mon, 15 Apr 2013 11:50:07 +0200 Subject: [PATCH] Get rid of wfScript in MediaWikiSite::normalizePageName wfScript should not be used to construct URLs for calls to other wikis Bug: 47242 Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48 --- includes/site/MediaWikiSite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 4cd48b88e3..98004a2967 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -130,7 +130,7 @@ class MediaWikiSite extends Site { // Also consider smaxage if maxage is used. ); - $url = wfAppendQuery( $this->getFileUrl( wfScript( 'api' ) ), $args ); + $url = wfAppendQuery( $this->getFileUrl( 'api.php' ), $args ); // Go on call the external site //@todo: we need a good way to specify a timeout here. -- 2.20.1