diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-19 22:20:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-19 22:20:49 +0000 |
commit | 71294994bda36f27370dc7747c0fa80d2655e2df (patch) | |
tree | b7556f5f55e6e5b9246f9df6ac90c3be26819304 | |
parent | 35bad3b13b1f2e796beb0b8cfa013299f1110848 (diff) | |
download | brdo-71294994bda36f27370dc7747c0fa80d2655e2df.tar.gz brdo-71294994bda36f27370dc7747c0fa80d2655e2df.tar.bz2 |
- Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper: theme_image() chokes if getimagesize() fails.
-rw-r--r-- | modules/system/image.gd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |