mongosoft\file\UploadBehavior::sanitize PHP Méthode

sanitize() public static méthode

#my* unsaf&file:name?".png
public static sanitize ( string $filename ) : boolean
$filename string the source filename to be "sanitized"
Résultat boolean string the sanitized filename
    public static function sanitize($filename)
    {
        return str_replace([' ', '"', '\'', '&', '/', '\\', '?', '#'], '-', $filename);
    }