summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 8e58d1e18..d1e9e6e01 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -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":