Switched from prepending http for protocol-relative $wgUploadStashScalerBaseUrl to...
authorIan Baker <raindrift@users.mediawiki.org>
Wed, 14 Sep 2011 17:48:10 +0000 (17:48 +0000)
committerIan Baker <raindrift@users.mediawiki.org>
Wed, 14 Sep 2011 17:48:10 +0000 (17:48 +0000)
Followup to r96934

includes/specials/SpecialUploadStash.php

index cc47af4..d620385 100644 (file)
@@ -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