From efa9d0f2cbd1930fbfc9b7b32dedbb4ce59593e2 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Mon, 13 Sep 2021 16:34:00 +0200 Subject: [PATCH] fix: too many root slashes --- src/Utils/FileSystem/FileSystem.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utils/FileSystem/FileSystem.php b/src/Utils/FileSystem/FileSystem.php index 646ba4a..3dc89ff 100644 --- a/src/Utils/FileSystem/FileSystem.php +++ b/src/Utils/FileSystem/FileSystem.php @@ -23,6 +23,7 @@ class FileSystem $buildPath = ''; for ($i=0; $i<$partsCount; $i++) { $part = $parts[$i]; + if ($part === '') continue; if (!file_exists($buildPath . "/$part")) { if (!is_writable($buildPath)) { if ($throw) {