ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FilenameSanitizer.php
Go to the documentation of this file.
1<?php
2
20
30{
34 public const CLEAN_FILE_SUFFIX = 'sec';
35
44 public function isClean(string $filename): bool;
45
54 public function sanitize(string $filename): string;
55}
$filename
Definition: buildRTE.php:78
The filename sanitizer verifies and fixes file name endings.
const CLEAN_FILE_SUFFIX
This file suffix will be used to sanitize not whitelisted file names.
isClean(string $filename)
Checks if the filename is prefixed with a valid whitelisted ending.
sanitize(string $filename)
Validates the file ending, with the filesystem whitelist provided by ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...