Ini: Fix that directives could not contain a slash

We introtuced preg_quote not quoting the delimiter.
This commit is contained in:
Eric Lippmann 2014-11-20 13:46:05 +01:00
parent bdc0321f62
commit 15506941a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }