summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2010-01-17 08:48:25 +0100
committerDerek Allard <derek.allard@ellislab.com>2010-01-17 08:48:25 +0100
commitf063ed7a0d51fd2abd5dd716ab7f92a54e45cd11 (patch)
treea0e23c7880ae9c2d6fdfd26081deafdccd6438a8 /system/helpers
parent563885b0a62bd4c4251f4df6a81f3e05493f5be1 (diff)
making get_mime_by_extension case insensitive
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 2be06ac4f..9ea5018ae 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -346,7 +346,7 @@ if ( ! function_exists('get_mime_by_extension'))
{
function get_mime_by_extension($file)
{
- $extension = strtolower(substr(strrchr($file, '.'), 1));
+ $extension = strtolower(substr(strrchr(strtolower($file), '.'), 1));
global $mimes;