ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 }
sanitize(string $filename)
Validates the file ending, with the filesystem whitelist provided by ILIAS.
isClean(string $filename)
Checks if the filename is prefixed with a valid whitelisted ending.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
$filename
Definition: buildRTE.php:78