summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoakim <joakim@my domain name here.com>2013-07-05 20:34:38 +0200
committerJoakim <joakim@my domain name here.com>2013-07-05 20:34:38 +0200
commit4cb2c55025c2ca56034117629af4d26856b9c7e8 (patch)
treeba28b7301b15500fe5e3a9fabc2e5e5ea12988ca /include
parent776b19536df2e01d8d5363c3a8647f3a24417b6b (diff)
Filter test from web interface now replicates behaviour from pull #167
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 355eec2cd..0eceed623 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;