ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FilenameSanitizer.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use ilException;
6 
21 {
22 
26  const CLEAN_FILE_SUFFIX = 'sec';
27 
40  public function isClean($filename);
41 
42 
53  public function sanitize($filename);
54 }
sanitize($filename)
Validates the file ending, with the filesystem whitelist provided by ILIAS.
isClean($filename)
Checks if the filename is prefixed with a valid whitelisted ending.
const CLEAN_FILE_SUFFIX
This file suffix will be used to sanitize not whitelisted file names.