From cf21cce93e7733e6b37313f103159994419a5f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Passault?= Date: Mon, 23 Sep 2024 17:06:36 +0200 Subject: [PATCH] Trimming file name before checking protocol --- Utils/FileUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/FileUtils.php b/Utils/FileUtils.php index 376a425..75c7582 100644 --- a/Utils/FileUtils.php +++ b/Utils/FileUtils.php @@ -17,6 +17,6 @@ public static function safeExists($file) */ public static function isPhar($file) { - return substr(strtolower($file), 0, 7) === 'phar://'; + return substr(strtolower(trim($file)), 0, 7) === 'phar://'; } }