From f063ed7a0d51fd2abd5dd716ab7f92a54e45cd11 Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Sun, 17 Jan 2010 07:48:25 +0000
Subject: making get_mime_by_extension case insensitive
---
system/helpers/file_helper.php | 2 +-
user_guide/changelog.html | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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;
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index a322d357a..55718c6bb 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -107,6 +107,7 @@ SVN Revision:
Fixed a bug in reduce_double_slashes() in the String Helper to properly remove duplicate leading slashes (#7585)
Fixed a bug in values_parsing() of the XML-RPC library which prevented NULL variables typed as 'string' from being handled properly.
Fixed a bug were form_open_multipart() didn't accept string attribute arguments (#10930).
+ Fixed a bug (#10470) where get_mime_by_extension() case sensitive.
Version 1.7.2
--
cgit v1.2.3-24-g4f1b