=== modified file 'modules/image/image.module'
--- modules/image/image.module	2010-05-31 11:42:11 +0000
+++ modules/image/image.module	2010-07-19 16:41:48 +0000
@@ -785,8 +785,8 @@ function image_style_url($style_name, $p
   // checked by image_style_generate().
   cache_set('access:' . $style_name . ':' . drupal_hash_base64($path), 1, 'cache_image', REQUEST_TIME + 600);
 
-  $scheme = file_uri_scheme($path);
-  $target = file_uri_target($path);
+  list($scheme, $target) = explode('://', $path, 2);
+  $target = trim($target, '\/');
 
   // Generate a callback path for the image.
   $url = url('image/generate/' . $style_name . '/' . $scheme . '/' . $target, array('absolute' => TRUE));

