From 9d33d10e5454b8d609ca43244510b7b28320d29a Mon Sep 17 00:00:00 2001 From: Ian Baker Date: Wed, 14 Sep 2011 17:48:10 +0000 Subject: [PATCH] Switched from prepending http for protocol-relative $wgUploadStashScalerBaseUrl to wfExpandUrl() Followup to r96934 --- includes/specials/SpecialUploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index cc47af4203..d62038543e 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -214,7 +214,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { // this is apparently a protocol-relative URL, which makes no sense in this context, // since this is used for communication that's internal to the application. // default to http. - $scalerBaseUrl = 'http:' . $scalerBaseUrl; + $scalerBaseUrl = wfExpandUrl( $scalerBaseUrl, PROTO_CANONICAL ); } // We need to use generateThumbName() instead of thumbName(), because -- 2.20.1