Skip to content

Commit

Permalink
Update src/File.php
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Donat <donatj@gmail.com>
  • Loading branch information
maennchen and donatj committed Dec 4, 2022
1 parent 477f444 commit 9a96764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function filterFilename(
): string {
// strip leading slashes from file name
// (fixes bug in windows archive viewer)
$fileName = preg_replace('/^\\/+/', '', $fileName);
$fileName = ltrim($fileName, '/');

return str_replace(['\\', ':', '*', '?', '"', '<', '>', '|'], '_', $fileName);
}
Expand Down

0 comments on commit 9a96764

Please sign in to comment.