summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-07-19 14:45:37 +0200
committerAndrey Andreev <narf@devilix.net>2016-07-19 14:45:57 +0200
commit81b13ba41f00da46ab23c10e9d625b8fe45b4349 (patch)
tree890e29b66a0481203383fa6e70d80740f428ce05 /system/libraries
parent11bdddcf2290dcd8f782de9727673070c78317ff (diff)
Merge pull request #4705 from tianhe1986/develop_upload_raw_name
Improve #4691
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 7b94a230c..056f6de1e 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -601,7 +601,7 @@ class CI_Upload {
'file_type' => $this->file_type,
'file_path' => $this->upload_path,
'full_path' => $this->upload_path.$this->file_name,
- 'raw_name' => substr($this->file_name, 0, strlen($this->file_name) - strlen($this->file_ext)),
+ 'raw_name' => substr($this->file_name, 0, -strlen($this->file_ext)),
'orig_name' => $this->orig_name,
'client_name' => $this->client_name,
'file_ext' => $this->file_ext,