summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>