FilterExpression: Pass used delimiter to `preg_quote`

fixes #4090
This commit is contained in:
Johannes Meyer 2020-03-02 08:39:46 +01:00
parent 2978d9a46a
commit 3a66b0a950
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class FilterExpression extends Filter
$parts = array();
foreach (preg_split('~\*~', $expression) as $part) {
$parts[] = preg_quote($part);
$parts[] = preg_quote($part, '/');
}
$pattern = '/^' . implode('.*', $parts) . '$/';