From fa6fbd3659a5f6dd5d2dc20497ec917737210ee9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 24 Dec 2012 13:56:36 +0400 Subject: do not preg_match() tags from article content --- include/rssfuncs.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 57413639a..a28cb2063 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -506,18 +506,7 @@ _debug("update_rss_feed: looking for tags [2]..."); } - /* taaaags */ - // , // - - $entry_tags = null; - - preg_match_all("/([^<]+)<\/a>/i", - $entry_content, $entry_tags); - - $entry_tags = $entry_tags[1]; - - $entry_tags = array_merge($entry_tags, $additional_tags); - $entry_tags = array_unique($entry_tags); + $entry_tags = array_unique($additional_tags); for ($i = 0; $i < count($entry_tags); $i++) $entry_tags[$i] = mb_strtolower($entry_tags[$i], 'utf-8'); -- cgit v1.2.3