Remove unnecessary slash in scalerThumbUrl
authorGilles Dubuc <gilles@wikimedia.org>
Tue, 9 Apr 2019 16:57:38 +0000 (18:57 +0200)
committerGilles Dubuc <gilles@wikimedia.org>
Tue, 9 Apr 2019 16:57:38 +0000 (18:57 +0200)
The thumb proxy URL already contains a trailing slash

Bug: T220265
Change-Id: I9176ac893250f857c04df5a6878278784cf785f6

includes/specials/SpecialUploadStash.php

index c27069e..24d58c8 100644 (file)
@@ -266,7 +266,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                $thumbProxyUrl = $file->getRepo()->getThumbProxyUrl();
 
                if ( strlen( $thumbProxyUrl ) ) {
-                       $scalerThumbUrl = $thumbProxyUrl . '/temp/' . $file->getUrlRel() .
+                       $scalerThumbUrl = $thumbProxyUrl . 'temp/' . $file->getUrlRel() .
                        '/' . rawurlencode( $scalerThumbName );
                }