summaryrefslogtreecommitdiff
path: root/modules/image/image.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image/image.module')
-rw-r--r--modules/image/image.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/image/image.module b/modules/image/image.module
index c902dd7cf..bb6e07985 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -288,6 +288,9 @@ function image_file_download($uri) {
array_shift($args);
// Get the style name from the second part.
$style_name = array_shift($args);
+ // Remove the scheme from the path.
+ array_shift($args);
+
// Then the remaining parts are the path to the image.
$original_uri = file_uri_scheme($uri) . '://' . implode('/', $args);