diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-06 15:36:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 15:36:40 +0200 |
commit | c20db3181733f701987d856f793f22b227d21762 (patch) | |
tree | 267b1290fbdd7e4ba7a4fcaaaf8a4ac07d162f37 /system/libraries/Upload.php | |
parent | 2d9e1dc24e47a57b97cbc60cdff287656474ebca (diff) | |
parent | 87f7634117c34a7667b1eb13c39bf8e53bdb1b87 (diff) |
Merge pull request #4691 from chestnutprog/develop
[ci skip] Fix a bug in CI_Upload::data()
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 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, |