Allow slashes in filter regular expressions
User's regular expressions need escaping before passing them to preg_match()
This commit is contained in:
parent
8cefe38a0a
commit
ffa1bd7b19
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue