mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:05:56 +00:00
get_article_filters: strip newlines from content before matching
This commit is contained in:
@@ -1388,9 +1388,15 @@
|
||||
$match = @preg_match("/$reg_exp/i", $title);
|
||||
break;
|
||||
case "content":
|
||||
// we don't need to deal with multiline regexps
|
||||
$content = preg_replace("/[\r\n\t]/", "", $content);
|
||||
|
||||
$match = @preg_match("/$reg_exp/i", $content);
|
||||
break;
|
||||
case "both":
|
||||
// we don't need to deal with multiline regexps
|
||||
$content = preg_replace("/[\r\n\t]/", "", $content);
|
||||
|
||||
$match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $content));
|
||||
break;
|
||||
case "link":
|
||||
|
||||
Reference in New Issue
Block a user