38 private const ZERO_JOINER =
'/\\x{00ad}|\\x{0083}|\\x{200c}|\\x{200d}|\\x{2062}|\\x{2063}/iu';
51 $filename = preg_replace(
'/[\x00-\x1F\x7F]/u',
'', $filename);
52 $filename = preg_replace(self::CONTROL_CHARACTER,
'', (
string) $filename);
55 $filename = preg_replace(self::FUNKY_WHITESPACES,
'', (
string) $filename);
56 $filename = preg_replace(self::SOFT_HYPHEN,
' ', (
string) $filename);
57 $filename = preg_replace(self::ZERO_JOINER,
'', (
string) $filename);
61 $filename = $form_c->transform($filename);
static sanitizeFileName(string $filename)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This Util class is a collection of static helper methods to provide file system related functionality...