From 56d71c5cb6ca2c74c513273716c9d932df4d5d1f Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 23 Feb 2017 15:45:57 +0100 Subject: [PATCH] Use parse_ini_string() where IniParser::parseIni() is not needed refs #2766 --- library/Icinga/File/Ini/IniParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/File/Ini/IniParser.php b/library/Icinga/File/Ini/IniParser.php index 62a6372ff..4ad760ee9 100644 --- a/library/Icinga/File/Ini/IniParser.php +++ b/library/Icinga/File/Ini/IniParser.php @@ -260,6 +260,6 @@ class IniParser throw new NotReadableError('Couldn\'t read the file `%s\'', $path); } - return Config::fromArray(self::parseIni($content)->toArray())->setConfigFile($file); + return Config::fromArray(parse_ini_string($content, true))->setConfigFile($file); } }