From efdb6e7f32730ee4463e60ed32e620ee08ff7dbb Mon Sep 17 00:00:00 2001 From: Hj Ahmad Rasyid Hj Ismail Date: Sun, 5 Feb 2017 13:14:21 +0800 Subject: [PATCH] file_exists(): open_basedir error fix As discussed in here http://www.elkarte.net/community/index.php?topic=4261.0 signed off by Ahmad Rasyid Ismail "ahrasis" ahrasis@gmail.com --- sources/subs/PackagesFilterIterator.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/subs/PackagesFilterIterator.class.php b/sources/subs/PackagesFilterIterator.class.php index ef3a1104d2..340bb138ce 100644 --- a/sources/subs/PackagesFilterIterator.class.php +++ b/sources/subs/PackagesFilterIterator.class.php @@ -41,7 +41,7 @@ public function accept() } // Anything that, once extracted, doesn't contain a package-info.xml. - if (!($current->isDir()) && file_exists($current->getPathname() . '/package-info.xml')) + if (!($current->isDir() && file_exists($current->getPathname() . '/package-info.xml'))) { return false; }