diff options
author | Dmitry Konishchev <[email protected]> | 2013-04-26 15:46:48 +0400 |
---|---|---|
committer | Dmitry Konishchev <[email protected]> | 2013-04-26 15:46:48 +0400 |
commit | ffa1bd7b19d6941d12f66a477c0b5cec44ef4857 (patch) | |
tree | 8470e01efeb1186ba381fa59f97dac88e9aab090 /include/rssfuncs.php | |
parent | 8cefe38a0a1623db866cb9bf295fe8a591ad5488 (diff) |
Allow slashes in filter regular expressions
User's regular expressions need escaping before passing them to
preg_match()
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 0cd41dc05..3c7716721 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -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) |