map file name sanitizing
This commit is contained in:
parent
6aeea15621
commit
d1c3ada631
@ -103,6 +103,7 @@ abstract class FileUtil {
|
|||||||
$fileName = Formatter::stripCodes($fileName);
|
$fileName = Formatter::stripCodes($fileName);
|
||||||
$fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
$fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
||||||
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
|
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
|
||||||
|
$fileName = Formatter::utf8($fileName);
|
||||||
return $fileName;
|
return $fileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user