Skip to content

Commit

Permalink
Trimming file name before checking protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregwar committed Sep 23, 2024
1 parent cdd1e00 commit cf21cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/FileUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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://';
}
}

0 comments on commit cf21cce

Please sign in to comment.