Fix regex for safe file name to work correct for unicode

This commit is contained in:
2023-02-09 15:08:15 +01:00
parent 7209e70eee
commit 83bb30c02e

View File

@@ -1,7 +1,7 @@
<?php
function MakeFilemameSafe($file_name) {
return preg_replace('/[^\w\-_\.]/', '_', $file_name);
return preg_replace('/[^\w\-_\.]/u', '_', $file_name);
}
function PathJoin($parts) {