diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-06 15:36:40 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-07-06 15:37:14 +0200 |
commit | 7a6ae33b3d457a1f86bc20ef78426ada3f37f899 (patch) | |
tree | 959215de997db91d9ae8ce820ce0cba02c330a38 | |
parent | abfa962e7ed45b5dbc5ac2a9ef99be42008504d6 (diff) |
Merge pull request #4691 from chestnutprog/develop
[ci skip] Fix a bug in CI_Upload::data()
-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 fa365058c..7b94a230c 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' => str_replace($this->file_ext, '', $this->file_name), + 'raw_name' => substr($this->file_name, 0, strlen($this->file_name) - strlen($this->file_ext)), 'orig_name' => $this->orig_name, 'client_name' => $this->client_name, 'file_ext' => $this->file_ext, |