From: Dmitry Konishchev Date: Fri, 26 Apr 2013 11:46:48 +0000 (+0400) Subject: Allow slashes in filter regular expressions X-Git-Tag: 1.7.9~25^2~69^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ffa1bd7b19d6941d12f66a477c0b5cec44ef4857;p=tt-rss.git Allow slashes in filter regular expressions User's regular expressions need escaping before passing them to preg_match() --- 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)