? imagefield.module-230848.patch
Index: imagefield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagefield/imagefield.module,v
retrieving revision 1.30.2.6.2.59
diff -u -p -r1.30.2.6.2.59 imagefield.module
--- imagefield.module	30 Apr 2008 17:36:41 -0000	1.30.2.6.2.59
+++ imagefield.module	1 May 2008 15:49:14 -0000
@@ -1028,10 +1028,9 @@ function theme_imagefield_image($file, $
   }
   if (!$getsize || (list($width, $height, $type, $image_attributes) = @getimagesize($file['filepath']))) {
     $attributes = drupal_attributes($attributes);
-    $path = ($file['fid'] == 'upload') ? $file['preview'] : $file['filepath'];
+    $url = ($file['fid'] == 'upload') ? url($file['preview']) : file_create_url($file['filepath']);
     $alt = empty($alt) ? $file['alt'] : $alt;
     $title = empty($title) ? $file['title'] : $title;
-    $url = file_create_url($path);
     return '<img src="'. check_url($url) .'" alt="'.
         check_plain($alt) .'" title="'. check_plain($title) .'" '. $image_attributes . $attributes .' />';
   }
