From: Joakim Date: Fri, 5 Jul 2013 18:34:38 +0000 (+0200) Subject: Filter test from web interface now replicates behaviour from pull #167 X-Git-Tag: 1.9~77^2~3^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4cb2c55025c2ca56034117629af4d26856b9c7e8;p=tt-rss.git Filter test from web interface now replicates behaviour from pull #167 --- diff --git a/include/functions.php b/include/functions.php index 355eec2c..0eceed62 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3958,6 +3958,7 @@ $reg_qpart = "REGEXP"; foreach ($filter["rules"] AS $rule) { + $rule['reg_exp'] = str_replace('/', '\/', $rule["reg_exp"]); $regexp_valid = preg_match('/' . $rule['reg_exp'] . '/', $rule['reg_exp']) !== FALSE;