Merge pull request #249 from qwerdy/master

Filter test from web interface now replicates behaviour from pull #167
This commit is contained in:
Andrew Dolgov 2013-07-06 00:43:30 -07:00
commit 80028907b5
1 changed files with 1 additions and 0 deletions

View File

@ -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;