mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 03:15:56 +00:00
Filter test from web interface now replicates behaviour from pull #167
This commit is contained in:
@@ -3958,6 +3958,7 @@
|
|||||||
$reg_qpart = "REGEXP";
|
$reg_qpart = "REGEXP";
|
||||||
|
|
||||||
foreach ($filter["rules"] AS $rule) {
|
foreach ($filter["rules"] AS $rule) {
|
||||||
|
$rule['reg_exp'] = str_replace('/', '\/', $rule["reg_exp"]);
|
||||||
$regexp_valid = preg_match('/' . $rule['reg_exp'] . '/',
|
$regexp_valid = preg_match('/' . $rule['reg_exp'] . '/',
|
||||||
$rule['reg_exp']) !== FALSE;
|
$rule['reg_exp']) !== FALSE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user