summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorTobias Tschech <tobias@tschech-online.de>2012-04-04 14:22:33 +0200
committerTobias Tschech <tobias@tschech-online.de>2012-04-04 14:22:33 +0200
commit9664cc9fbb9b7f10776e9ad76ba7b27de5c2cda4 (patch)
tree8c9c530ce836d89a445d2957516fe8dbcd66f6a8 /system
parent7bf632f4ba3a3db1ae38915efe2026d25acc9539 (diff)
Update system/libraries/Zip.php
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);