Skip to content

Commit

Permalink
/u regex suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 6, 2020
1 parent 4b3094e commit c2a73bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Autoloader/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public function sanitizeFilename(string $filename): string
// be a path.
// http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_278
// Modified to allow backslash and colons for on Windows machines.
$filename = preg_replace('/[^a-zA-Z0-9\p{L}\s\/\-\_\.\:\\\\]/', '', $filename);
$filename = preg_replace('/[^a-zA-Z0-9\p{L}\s\/\-\_\.\:\\\\]/u', '', $filename);

// Clean up our filename edges.
$filename = trim($filename, '.-_');
Expand Down

0 comments on commit c2a73bf

Please sign in to comment.