summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-05-11 12:42:24 +0200
committerAndrey Andreev <narf@bofh.bg>2012-05-11 12:42:24 +0200
commit46d53fb8799eb2f84798f0e7a5f57b065c2482e2 (patch)
treedc21ecd6161207dc4a631a19371180a76d42b00b /system/libraries
parent585cf67a98d8a31f584c13a319310ca7561d572c (diff)
Fix issue #1349
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 4a4a66f73..24d4bd4d0 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -725,7 +725,7 @@ class CI_Upload {
public function get_extension($filename)
{
$x = explode('.', $filename);
- return '.'.end($x);
+ return (count($x) !== 1) ? '.'.end($x) : '';
}
// --------------------------------------------------------------------