From 268569114c452d9820679412a9932c98aee936a7 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 7 Nov 2014 13:38:35 +0100 Subject: [PATCH] Fix that an error is thrown when reading INI files without trailing newlines --- library/Icinga/Application/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Config.php b/library/Icinga/Application/Config.php index 568d5d701..aa3765d86 100644 --- a/library/Icinga/Application/Config.php +++ b/library/Icinga/Application/Config.php @@ -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); }