map file name sanitizing

This commit is contained in:
Steffen Schröder 2014-06-23 15:51:39 +02:00
parent 6aeea15621
commit d1c3ada631

View File

@ -103,6 +103,7 @@ abstract class FileUtil {
$fileName = Formatter::stripCodes($fileName);
$fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
$fileName = Formatter::utf8($fileName);
return $fileName;
}