diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-19 14:45:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 14:45:37 +0200 |
commit | 0a00a52a2fa73b447adf2e3352745cb256e039e8 (patch) | |
tree | df607658e1de34ac4e5d2b3e38796c7d6b510f49 /system/libraries/Upload.php | |
parent | 953e7c1c0d38b7ccc5fbaf03f9e5aed9ac58f3b7 (diff) | |
parent | b185e2f8ad6ab11ebd5e11dc3d829aea952b92b7 (diff) |
Merge pull request #4705 from tianhe1986/develop_upload_raw_name
Improve #4691
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r-- | system/libraries/Upload.php | 2 |
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, |