Definition at line 28 of file Util.php.
◆ normalizeRelativePath()
static ILIAS\Filesystem\Provider\FlySystem\Util::normalizeRelativePath |
( |
string |
$path | ) |
|
|
static |
Definition at line 30 of file Util.php.
30 : string
31 {
32 $path = preg_replace(
"#\\\\(?!['\\\])#m",
'/',
$path);
33 $path = preg_replace(
'#\p{C}+#u',
'', (
string)
$path);
35
36 foreach (explode(
'/', (
string)
$path) as $part) {
37 switch ($part) {
38 case '':
39 case '.':
40 break;
41
42 case '..':
44 throw new \LogicException(
45 'Path is outside of the defined root, path: [' .
$path .
']'
46 );
47 }
49 break;
50
51 default:
53 break;
54 }
55 }
56
57 return implode(
'/',
$parts);
58 }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
References $parts, and $path.
Referenced by ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess\read().
The documentation for this class was generated from the following file:
- components/ILIAS/Filesystem/src/Provider/FlySystem/Util.php