]> git.wh0rd.org Git - tt-rss.git/commitdiff
Filter test from web interface now replicates behaviour from pull #167
authorJoakim <joakim@my domain name here.com>
Fri, 5 Jul 2013 18:34:38 +0000 (20:34 +0200)
committerJoakim <joakim@my domain name here.com>
Fri, 5 Jul 2013 18:34:38 +0000 (20:34 +0200)
include/functions.php

index 355eec2cd09fd16123a6c47e136d2b42f1583f3f..0eceed623267122cd1ff97b377d2ebfbe23771b3 100644 (file)
                        $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;