ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
FilenameSanitizer.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\Filesystem\Security\Sanitizing
;
4
5
use
ilException
;
6
20
interface
FilenameSanitizer
21
{
22
26
const
CLEAN_FILE_SUFFIX
=
'sec'
;
27
40
public
function
isClean
(
$filename
);
41
42
53
public
function
sanitize
(
$filename
);
54
}
ilException
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer\sanitize
sanitize($filename)
Validates the file ending, with the filesystem whitelist provided by ILIAS.
$filename
$filename
Definition:
33chartcreate-stock.php:138
ILIAS\Filesystem\Security\Sanitizing
Definition:
FilenameSanitizer.php:3
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer\isClean
isClean($filename)
Checks if the filename is prefixed with a valid whitelisted ending.
ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer
Definition:
FilenameSanitizer.php:20
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:26
src
Filesystem
Security
Sanitizing
FilenameSanitizer.php
Generated on Sat Jan 18 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)