Update system/libraries/Zip.php
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 2ec7bef..8043854 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -304,8 +304,7 @@
}
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);