mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Optimize IcingaConfig::resolvePath
This commit is contained in:
parent
6e4bf73c36
commit
6daccae30e
@ -173,6 +173,8 @@ class Config extends Zend_Config
|
||||
return $path;
|
||||
}
|
||||
|
||||
return self::$configDir . DIRECTORY_SEPARATOR . $path;
|
||||
$path = self::$configDir . DIRECTORY_SEPARATOR . $path;
|
||||
$canonical = realpath($path);
|
||||
return ($canonical === false) ? $path : $canonical;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user