]> git.wh0rd.org - tt-rss.git/commitdiff
fix title and content filters only working on title (closes #512)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 13 Nov 2012 05:31:12 +0000 (09:31 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 13 Nov 2012 05:31:26 +0000 (09:31 +0400)
include/rssfuncs.php

index d1c304a020fe76bb8e9896b14ccd62198866c60a..8e58d1e1848def7ddac1a3cc2770bb0e8398ed10 100644 (file)
                                        $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);