Tobias Gritschacher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59120


Change subject: Get rid of wfScript in MediaWikiSite::normalizePageName
......................................................................

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
---
M includes/site/MediaWikiSite.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/20/59120/1

diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php
index 4cd48b8..98004a2 100644
--- a/includes/site/MediaWikiSite.php
+++ b/includes/site/MediaWikiSite.php
@@ -130,7 +130,7 @@
                                // 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.

-- 
To view, visit https://gerrit.wikimedia.org/r/59120
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to