From 65ce0ff4e49106a9af5ce2d312036fbe4ceb53d0 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 22 Sep 2012 23:24:19 +0100 Subject: [PATCH] check filename extension by lowercased version of itself --- core/util.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/util.inc.php b/core/util.inc.php index a18b1923..387ddee7 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -513,6 +513,7 @@ function getMimeType($file, $ext="") { if ($type !== false && strlen($type) > 0) return $type; // Otherwise do it the old fashioned way + $ext = strtolower($ext); static $exts = array( 'jpg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'ico' => 'image/x-icon',