IniParser::parseIniFile(): parse as ::parseIni() would do

refs #3357
This commit is contained in:
Alexander A. Klimov 2018-04-04 13:58:19 +02:00
parent 8262f19c5a
commit 15bc83ec14
1 changed files with 6 additions and 1 deletions

View File

@ -267,6 +267,11 @@ class IniParser
throw new ConfigurationError('Couldn\'t parse the INI file `%s\'', $path, $e);
}
return Config::fromArray($configArray)->setConfigFile($file);
$unescaped = array();
foreach ($configArray as $section => $options) {
$unescaped[preg_replace('/\\\\(.)/', '\1', $section)] = $options;
}
return Config::fromArray($unescaped)->setConfigFile($file);
}
}