From 6cc085a64ff86872d6c180f5bf2caf8d2f61f927 Mon Sep 17 00:00:00 2001 From: Woody Gilk Date: Sun, 11 Oct 2009 17:58:58 -0500 Subject: [PATCH] Image_GD::_save_function() needs to normalize the extension to allow capitalized extensions. Fixes #2221 --- classes/kohana/image/gd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/kohana/image/gd.php b/classes/kohana/image/gd.php index 8f3406d..c5fd5ed 100644 --- a/classes/kohana/image/gd.php +++ b/classes/kohana/image/gd.php @@ -431,7 +431,7 @@ class Kohana_Image_GD extends Image { */ protected function _save_function($extension, & $quality) { - switch ($extension) + switch (strtolower($extension)) { case 'jpg': case 'jpeg': -- 2.11.4.GIT