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
FilenameSanitizing.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Filesystem\Util
;
20
21
use
PHPUnit\Framework\TestCase
;
22
use
ILIAS\Filesystem\Util
;
23
24
require_once(
"./include/Unicode/UtfNormal.php"
);
25
29
class
FilenameSanitizing
extends
TestCase
30
{
31
public
function
provideFilenames
() : array
32
{
33
return
[
34
[
"Control\u{00a0}Character"
,
'ControlCharacter'
],
35
[
"Soft\u{00ad}Hyphen"
,
'SoftHyphen'
],
36
[
"No\u{0083}Break"
,
'NoBreak'
],
37
[
"ZeroWidth\u{200C}NonJoiner"
,
'ZeroWidthNonJoiner'
],
38
[
"ZeroWidth\u{200d}Joiner"
,
'ZeroWidthJoiner'
],
39
[
"Invisible\u{2062}Times"
,
'InvisibleTimes'
],
40
[
"Invisible\u{2063}Comma"
,
'InvisibleComma'
],
41
[
"Funky\u{200B}Whitespace"
,
'FunkyWhitespace'
],
42
];
43
}
44
48
public
function
testSanitize
(
string
$filename
,
string
$expected) : void
49
{
50
$this->assertEquals($expected, Util::sanitizeFilename($filename));
51
}
52
}
ILIAS\Filesystem\Util\FilenameSanitizing\testSanitize
testSanitize(string $filename, string $expected)
provideFilenames
Definition:
FilenameSanitizing.php:48
ILIAS\Filesystem\Util\FilenameSanitizing\provideFilenames
provideFilenames()
Definition:
FilenameSanitizing.php:31
ILIAS\Filesystem\Util\FilenameSanitizing
Definition:
FilenameSanitizing.php:29
ILIAS\Filesystem\Util
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
LegacyPathHelper.php:4
$filename
$filename
Definition:
buildRTE.php:89
TestCase
tests
Filesystem
Util
FilenameSanitizing.php
Generated on Wed Apr 9 2025 21:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)