summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-30 13:09:38 +0400
committerAndrew Dolgov <[email protected]>2012-10-30 13:09:38 +0400
commit3fc6e71ac862242a571a28d3b6efdd6e82a3cb77 (patch)
treeda6590ca4fb0861de0cec98fe897ecade5a7c85e /include
parentb24504b121315813939fa5af1963bee93b6d9d4d (diff)
apply filters and detect labels based on article content without tags
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 1e2feb3cb..e90b3cc07 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -865,7 +865,7 @@
/* Collect article tags here so we could filter by them: */
$article_filters = get_article_filters($filters, $entry_title,
- $entry_content, $entry_link, $entry_timestamp, $entry_author,
+ strip_tags($entry_content), $entry_link, $entry_timestamp, $entry_author,
$entry_tags);
if ($debug_enabled) {
@@ -1218,7 +1218,7 @@
foreach ($labels as $label) {
$caption = $label["caption"];
- if (preg_match("/\b$caption\b/i", "$tags_str $entry_content $entry_title")) {
+ if (preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) {
if (!labels_contains_caption($article_labels, $caption)) {
label_add_article($link, $entry_ref_id, $caption, $owner_uid);
}