Skip to content

Commit cf21cce

Browse files
committed
Trimming file name before checking protocol
1 parent cdd1e00 commit cf21cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/FileUtils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public static function safeExists($file)
1717
*/
1818
public static function isPhar($file)
1919
{
20-
return substr(strtolower($file), 0, 7) === 'phar://';
20+
return substr(strtolower(trim($file)), 0, 7) === 'phar://';
2121
}
2222
}

0 commit comments

Comments
 (0)