summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorAdrian <adrian@digiworks.fr>2013-06-24 14:39:52 +0200
committerAdrian <adrian@digiworks.fr>2013-06-24 14:39:52 +0200
commit5d1cacfeadacb03dc8cb4dcb334a3e18db4fc5d7 (patch)
tree7efbc204810b32accf59ed2b33b89553a3cbbbb5 /system/libraries/Upload.php
parenta2bbb045f262e49e8f3143e17c8466885b3967f9 (diff)
Force the file extension to lower case
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 7c48b4294..9c2b45659 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -965,7 +965,7 @@ class CI_Upload {
public function get_extension($filename)
{
$x = explode('.', $filename);
- return (count($x) !== 1) ? '.'.end($x) : '';
+ return (count($x) !== 1) ? '.'.strtolower(end($x)) : '';
}
// --------------------------------------------------------------------
@@ -1284,4 +1284,4 @@ class CI_Upload {
}
/* End of file Upload.php */
-/* Location: ./system/libraries/Upload.php */ \ No newline at end of file
+/* Location: ./system/libraries/Upload.php */