diff options
author | Kyle Gadd <kyle.gadd@gmail.com> | 2015-04-04 01:37:44 +0200 |
---|---|---|
committer | Kyle Gadd <kyle.gadd@gmail.com> | 2015-04-04 01:37:44 +0200 |
commit | b7a8fbb9588ce4603e9c8fa16072a186e70b8bdb (patch) | |
tree | 720d5bbc8d4e61d92dfb6a23eef90af948368bd5 /system/libraries/Zip.php | |
parent | 016c43354ef90cc0802456d814fb5a9f88451b6f (diff) |
Matched root_path's slashes with the name being replaced
Diffstat (limited to 'system/libraries/Zip.php')
-rw-r--r-- | system/libraries/Zip.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index f2f17148b..3e98ac568 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -352,7 +352,7 @@ class CI_Zip { // Set the original directory root for child dir's to use as relative if ($root_path === NULL) { - $root_path = dirname($path).DIRECTORY_SEPARATOR; + $root_path = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, dirname($path)).DIRECTORY_SEPARATOR; } while (FALSE !== ($file = readdir($fp))) |