minor changes

This commit is contained in:
Steffen Schröder
2014-05-24 21:53:07 +02:00
parent 02222680e2
commit fcd4e577cf
2 changed files with 2 additions and 2 deletions

View File

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