From 41172a383e3b4ce3893b677652995dcad393949c Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 19 Jul 2023 19:46:32 -0600 Subject: [PATCH] Fix issue with open_basedir compatibility Should fix wintercms/winter#948 --- src/Filesystem/Filesystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filesystem/Filesystem.php b/src/Filesystem/Filesystem.php index 3eb3542a..9904402b 100644 --- a/src/Filesystem/Filesystem.php +++ b/src/Filesystem/Filesystem.php @@ -431,8 +431,8 @@ protected function findSymlinks(): void $iterator = function ($path) use (&$iterator, &$symlinks, $basePath, $restrictBaseDir, $deep) { foreach (new DirectoryIterator($path) as $directory) { if ( - $directory->isDir() === false - || $directory->isDot() === true + $directory->isDot() + || !$directory->isDir() ) { continue; }