Index: lightbox2.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lightbox2/lightbox2.module,v
retrieving revision 1.16.2.17.2.80
diff -u -p -r1.16.2.17.2.80 lightbox2.module
--- lightbox2.module 2 May 2008 23:25:46 -0000 1.16.2.17.2.80
+++ lightbox2.module 3 May 2008 00:13:55 -0000
@@ -1093,7 +1093,11 @@ function lightbox2_imagecache_create_url
     return imagecache_create_url($preset, $filepath);
   }
   else {
-    $path = _imagecache_strip_file_directory($filepath);
+    $dirpath = file_directory_path();
+    $dirlen = strlen($dirpath);
+    if (substr($path, 0, $dirlen + 1) == $dirpath .'/') {
+      $path = substr($path, $dirlen + 1);
+    }
     return file_create_url(file_directory_path() .'/imagecache/'. $preset .'/'. $path);
   }
 }
