- Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper: theme_image() chokes if getimagesize() fails.

merge-requests/26/head
Dries Buytaert 2010-07-19 22:20:49 +00:00
parent 35bad3b13b
commit 71294994bd
1 changed files with 1 additions and 1 deletions

View File

@ -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');