From 5e59fcb420f4cd6b6f4af12d6bdb491f779207f6 Mon Sep 17 00:00:00 2001 From: gresakg Date: Thu, 11 Dec 2014 18:14:25 +0100 Subject: [PATCH] enable images using query strings Images with query strings failed before this patch. --- function.resize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.resize.php b/function.resize.php index 5306cfd..71a9fe1 100644 --- a/function.resize.php +++ b/function.resize.php @@ -45,7 +45,7 @@ function resize($imagePath,$opts=null){ $purl = parse_url($imagePath); $finfo = pathinfo($imagePath); - $ext = $finfo['extension']; + list($ext) = explode("?",$finfo['extension']); # check for remote image.. if(isset($purl['scheme']) && ($purl['scheme'] == 'http' || $purl['scheme'] == 'https')):