From ffa1bd7b19d6941d12f66a477c0b5cec44ef4857 Mon Sep 17 00:00:00 2001 From: Dmitry Konishchev Date: Fri, 26 Apr 2013 15:46:48 +0400 Subject: [PATCH] Allow slashes in filter regular expressions User's regular expressions need escaping before passing them to preg_match() --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 0cd41dc0..3c771672 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1242,7 +1242,7 @@ foreach ($filter["rules"] as $rule) { $match = false; - $reg_exp = $rule["reg_exp"]; + $reg_exp = str_replace('/', '\/', $rule["reg_exp"]); $rule_inverse = $rule["inverse"]; if (!$reg_exp) -- 2.39.5