summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-03-10 00:31:49 +0100
committerGitHub <noreply@github.com>2018-03-10 00:31:49 +0100
commitca2942f40b472589488c68f23a27fb11e07336c2 (patch)
treee350aba2498b6f3c030820cd74d51e111cbee2c4
parent8ef6526651c4900308255c2cda0f7278223ea387 (diff)
parent90ef2e3bd27cfb5125e2d27ec71c2ed990c12cc5 (diff)
[ci skip] Merge pull request #5429 from mehdibo/patch-2
Allow archiving of hidden files in CI_Zip::read_dir()
-rw-r--r--system/libraries/Zip.php2
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;
}