From: Andrew Dolgov Date: Tue, 13 Nov 2012 05:31:12 +0000 (+0400) Subject: fix title and content filters only working on title (closes #512) X-Git-Tag: 1.6.2~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=72d1d0678ed7f3c34c87fb14c855651ee6a8cd38;p=tt-rss.git fix title and content filters only working on title (closes #512) --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index d1c304a0..8e58d1e1 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1391,7 +1391,7 @@ $match = @preg_match("/$reg_exp/i", $content); break; case "both": - $match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $title)); + $match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $content)); break; case "link": $match = @preg_match("/$reg_exp/i", $link);