mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 13:24:24 +02:00
Prefer dirname rather than pathinfo
This commit is contained in:
parent
33e69072b2
commit
3e31ff65a4
@ -169,7 +169,7 @@ class Config extends Zend_Config
|
||||
throw new ProgrammingError('Windows support has not yet been implemented');
|
||||
}
|
||||
|
||||
if (strpos(pathinfo($path, PATHINFO_DIRNAME), DIRECTORY_SEPARATOR) === 0) {
|
||||
if (strpos(dirname($path), DIRECTORY_SEPARATOR) === 0) {
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user