mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +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);
|
$config->setConfigFile($file);
|
||||||
} elseif (is_readable($filepath)) {
|
} elseif (is_readable($filepath)) {
|
||||||
$config->setConfigFile($filepath);
|
$config->setConfigFile($filepath);
|
||||||
$config->merge(parse_ini_file($filepath, true, INI_SCANNER_RAW));
|
$config->merge(parse_ini_file($filepath, true));
|
||||||
} else {
|
} else {
|
||||||
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user