summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Zip.php3
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);