mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Merge pull request #3407 from Icinga/bugfix/dashboard-name-escaped-char-3357
IniParser::parseIniFile(): parse as ::parseIni() would do
This commit is contained in:
commit
e002383a90
@ -267,6 +267,11 @@ class IniParser
|
|||||||
throw new ConfigurationError('Couldn\'t parse the INI file `%s\'', $path, $e);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user