fix strict requirement argument

This commit is contained in:
Beu 2023-08-14 17:32:13 +02:00
parent 0ad0d06f85
commit d947337c9c

View File

@ -57,7 +57,7 @@ abstract class FileUtil {
public static function getClearedFileName($fileName) {
$fileName = Formatter::stripCodes($fileName);
$fileName = Formatter::utf8($fileName);
$fileName = preg_replace('/[^0-9A-Za-z\-\+\.\_\ ]/', null, $fileName);
$fileName = preg_replace('/[^0-9A-Za-z\-\+\.\_\ ]/', '', $fileName);
$fileName = preg_replace('/ /', '_', $fileName);
return $fileName;
}