diff options
author | Tobias Tschech <tobias@tschech-online.de> | 2012-04-04 14:22:33 +0200 |
---|---|---|
committer | Tobias Tschech <tobias@tschech-online.de> | 2012-04-04 14:22:33 +0200 |
commit | 9664cc9fbb9b7f10776e9ad76ba7b27de5c2cda4 (patch) | |
tree | 8c9c530ce836d89a445d2957516fe8dbcd66f6a8 | |
parent | 7bf632f4ba3a3db1ae38915efe2026d25acc9539 (diff) |
Update system/libraries/Zip.php
-rw-r--r-- | system/libraries/Zip.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index 2ec7befd3..80438546b 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -304,8 +304,7 @@ class CI_Zip { } elseif (FALSE !== ($data = file_get_contents($path.$file))) { - $name = str_replace("\\", DIRECTORY_SEPARATOR, $path); - $name = str_replace("/", DIRECTORY_SEPARATOR, $path); + $name = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $path); if ($preserve_filepath === FALSE) { $name = str_replace($root_path, '', $name); |