From 90ef2e3bd27cfb5125e2d27ec71c2ed990c12cc5 Mon Sep 17 00:00:00 2001 From: Mehdi Bounya <5004111+mehdibo@users.noreply.github.com> Date: Sun, 4 Mar 2018 00:00:20 +0000 Subject: 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. --- system/libraries/Zip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries') 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; } -- cgit v1.2.3-24-g4f1b