mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Ini: Fix that directives could not contain a slash
We introtuced preg_quote not quoting the delimiter.
This commit is contained in:
parent
bdc0321f62
commit
15506941a6
@ -493,7 +493,7 @@ class IniEditor
|
|||||||
private function isPropertyDeclaration($lineContent, array $key)
|
private function isPropertyDeclaration($lineContent, array $key)
|
||||||
{
|
{
|
||||||
return preg_match(
|
return preg_match(
|
||||||
'/^\s*' . preg_quote($this->formatKey($key)) . '\s*=\s*/',
|
'/^\s*' . preg_quote($this->formatKey($key), '/') . '\s*=\s*/',
|
||||||
$lineContent
|
$lineContent
|
||||||
) === 1;
|
) === 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user