diff options
author | Mehdi Bounya <5004111+mehdibo@users.noreply.github.com> | 2018-03-04 01:00:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-04 01:00:20 +0100 |
commit | 90ef2e3bd27cfb5125e2d27ec71c2ed990c12cc5 (patch) | |
tree | e350aba2498b6f3c030820cd74d51e111cbee2c4 | |
parent | 8ef6526651c4900308255c2cda0f7278223ea387 (diff) |
Fixed bug in ZIP library
the `read_dir` method ignores files that starts with a dot (like .htaccess) I looked through the documentation and it didn't mention that the method ignores hidden files so it must be a bug.
-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 bc557bfe4..6ed6d5242 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -366,7 +366,7 @@ class CI_Zip { while (FALSE !== ($file = readdir($fp))) { - if ($file[0] === '.') + if ($file === '.' OR $file === '..') { continue; } |