ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
FilenameSanitizer.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\Filesystem\Security\Sanitizing
;
4
15
interface
FilenameSanitizer
16
{
17
21
const
CLEAN_FILE_SUFFIX
=
'sec'
;
22
30
public
function
isClean
(
string
$filename
) : bool;
31
38
public
function
sanitize
(
string
$filename) : string;
39
}
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:15
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:21
$filename
$filename
Definition:
buildRTE.php:89
src
Filesystem
Security
Sanitizing
FilenameSanitizer.php
Generated on Wed Apr 9 2025 21:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)