ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
FilenameSanitizer.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\Filesystem\Security\Sanitizing
;
4
18
interface
FilenameSanitizer
19
{
20
24
const
CLEAN_FILE_SUFFIX
=
'sec'
;
25
36
public
function
isClean
(
string
$filename
) : bool;
37
38
47
public
function
sanitize
(
string
$filename) : string;
48
}
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer\sanitize
sanitize(string $filename)
Validates the file ending, with the filesystem whitelist provided by ILIAS.
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer\isClean
isClean(string $filename)
Checks if the filename is prefixed with a valid whitelisted ending.
ILIAS\Filesystem\Security\Sanitizing
Definition:
FilenameSanitizer.php:3
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer
Definition:
FilenameSanitizer.php:18
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer\CLEAN_FILE_SUFFIX
const CLEAN_FILE_SUFFIX
This file suffix will be used to sanitize not whitelisted file names.
Definition:
FilenameSanitizer.php:24
$filename
$filename
Definition:
buildRTE.php:89
php
src
Filesystem
Security
Sanitizing
FilenameSanitizer.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)