ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Class ilFileServicesFilenameSanitizer. More...
Public Member Functions | |
__construct (ilFileServicesSettings $settings) | |
![]() | |
__construct (private array $whitelist) | |
FilenameSanitizerImpl constructor. More... | |
isClean (string $filename) | |
Checks if the filename is prefixed with a valid whitelisted ending. More... | |
sanitize (string $filename) | |
Additional Inherited Members | |
![]() | |
const | CLEAN_FILE_SUFFIX = 'sec' |
This file suffix will be used to sanitize not whitelisted file names. More... | |
Class ilFileServicesFilenameSanitizer.
Definition at line 26 of file class.ilFileServicesFilenameSanitizer.php.
ilFileServicesFilenameSanitizer::__construct | ( | ilFileServicesSettings | $settings | ) |
Definition at line 28 of file class.ilFileServicesFilenameSanitizer.php.
References ILIAS\GlobalScreen\Provider\__construct(), ilFileServicesSettings\getBlackListedSuffixes(), and ilFileServicesSettings\getWhiteListedSuffixes().