From 15506941a67827e638087537e6f22a289b7e61a4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 20 Nov 2014 13:46:05 +0100 Subject: [PATCH] Ini: Fix that directives could not contain a slash We introtuced preg_quote not quoting the delimiter. --- library/Icinga/File/Ini/IniEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/File/Ini/IniEditor.php b/library/Icinga/File/Ini/IniEditor.php index ebac0ceb6..85d71b697 100644 --- a/library/Icinga/File/Ini/IniEditor.php +++ b/library/Icinga/File/Ini/IniEditor.php @@ -493,7 +493,7 @@ class IniEditor private function isPropertyDeclaration($lineContent, array $key) { return preg_match( - '/^\s*' . preg_quote($this->formatKey($key)) . '\s*=\s*/', + '/^\s*' . preg_quote($this->formatKey($key), '/') . '\s*=\s*/', $lineContent ) === 1; }