mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix that an error is thrown when reading INI files without trailing newlines
This commit is contained in:
parent
4537b2932e
commit
268569114c
@ -401,7 +401,7 @@ class Config implements Countable, Iterator, ArrayAccess
|
||||
$config->setConfigFile($file);
|
||||
} elseif (is_readable($filepath)) {
|
||||
$config->setConfigFile($filepath);
|
||||
$config->merge(parse_ini_file($filepath, true, INI_SCANNER_RAW));
|
||||
$config->merge(parse_ini_file($filepath, true));
|
||||
} else {
|
||||
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user