From 71294994bda36f27370dc7747c0fa80d2655e2df Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 Jul 2010 22:20:49 +0000 Subject: - Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper: theme_image() chokes if getimagesize() fails. --- modules/system/image.gd.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/system/image.gd.inc b/modules/system/image.gd.inc index 28b1a3e9c..09df3abad 100644 --- a/modules/system/image.gd.inc +++ b/modules/system/image.gd.inc @@ -336,7 +336,7 @@ function image_gd_create_tmp(stdClass $image, $width, $height) { */ function image_gd_get_info(stdClass $image) { $details = FALSE; - $data = getimagesize($image->source); + $data = getimagesize(drupal_realpath($image->source)); if (isset($data) && is_array($data)) { $extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png'); -- cgit v1.2.3