From 3a66b0a950b3c259841bf85d835d84c754d9d6dc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 2 Mar 2020 08:39:46 +0100 Subject: [PATCH] FilterExpression: Pass used delimiter to `preg_quote` fixes #4090 --- library/Icinga/Data/Filter/FilterExpression.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Data/Filter/FilterExpression.php b/library/Icinga/Data/Filter/FilterExpression.php index 87cd73392..743c8cb4b 100644 --- a/library/Icinga/Data/Filter/FilterExpression.php +++ b/library/Icinga/Data/Filter/FilterExpression.php @@ -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) . '$/';