From: Andrew Dolgov Date: Mon, 24 Dec 2012 09:56:36 +0000 (+0400) Subject: do not preg_match() tags from article content X-Git-Tag: 1.7.0~142 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fa6fbd3659a5f6dd5d2dc20497ec917737210ee9;p=tt-rss.git do not preg_match() tags from article content --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 57413639..a28cb206 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');