clear file names from non-printable characters (for the dedi...)
This commit is contained in:
parent
334b3b606c
commit
43badf4baa
@ -90,6 +90,7 @@ abstract class FileUtil {
|
|||||||
public static function getClearedFileName($fileName) {
|
public static function getClearedFileName($fileName) {
|
||||||
$fileName = Formatter::stripCodes($fileName);
|
$fileName = Formatter::stripCodes($fileName);
|
||||||
$fileName = str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
$fileName = str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
||||||
|
$fileName = preg_replace( '/[^[:print:]]/', '', $fileName);
|
||||||
return $fileName;
|
return $fileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user