Allow slashes in filter regular expressions

User's regular expressions need escaping before passing them to
preg_match()
master
Dmitry Konishchev 12 years ago
parent 8cefe38a0a
commit ffa1bd7b19

@ -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…
Cancel
Save