summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-09-25 05:23:21 +0200
committerDerek Allard <derek.allard@ellislab.com>2009-09-25 05:23:21 +0200
commite339ef56f366024b4d094a8f7335d56cf683598b (patch)
treed1eeb1c5e97a235c0d6f8b1dcd6aafeda473e9ae /system/helpers
parent8a52791ee8387e6f5cac570088ee18183900741b (diff)
Made 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 0d7b5d5aa..cb3d60ee9 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -340,7 +340,7 @@ if ( ! function_exists('get_mime_by_extension'))
{
function get_mime_by_extension($file)
{
- $extension = substr(strrchr($file, '.'), 1);
+ $extension = strtolower(substr(strrchr($file, '.'), 1));
global $mimes;