diff options
author | Derek Allard <derek.allard@ellislab.com> | 2010-01-17 08:48:25 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2010-01-17 08:48:25 +0100 |
commit | f063ed7a0d51fd2abd5dd716ab7f92a54e45cd11 (patch) | |
tree | a0e23c7880ae9c2d6fdfd26081deafdccd6438a8 | |
parent | 563885b0a62bd4c4251f4df6a81f3e05493f5be1 (diff) |
making get_mime_by_extension case insensitive
-rw-r--r-- | system/helpers/file_helper.php | 2 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 2 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; 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: </p> <li>Fixed a bug in reduce_double_slashes() in the String Helper to properly remove duplicate leading slashes (#7585)</li> <li>Fixed a bug in values_parsing() of the XML-RPC library which prevented NULL variables typed as 'string' from being handled properly.</li> <li>Fixed a bug were form_open_multipart() didn't accept string attribute arguments (#10930).</li> + <li>Fixed a bug (#10470) where <kdb>get_mime_by_extension()</kbd> case sensitive.</li> </ul> <h2>Version 1.7.2</h2> |