summaryrefslogtreecommitdiffstats
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
parent8a52791ee8387e6f5cac570088ee18183900741b (diff)
Made get_mime_by_extension() case insensitive.
-rw-r--r--system/helpers/file_helper.php2
-rw-r--r--user_guide/changelog.html1
2 files changed, 2 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;
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index a6eaef166..a941904ce 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -78,6 +78,7 @@ SVN Revision: </p>
<ul>
<li>Increased randomness with<kbd>is_really_writable()</kbd> to avoid file collisions when hundreds or thousands of requests occur at once.</li>
<li>Fixed or clarified assorted user guide typos or examples.</li>
+ <li>Made <kbd>get_mime_by_extension()</kbd> case insensitive.</li>
</ul>
<h2>Version 1.7.2</h2>