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