diff options
author | Andrew Dolgov <[email protected]> | 2012-12-24 13:56:36 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-24 13:56:36 +0400 |
commit | fa6fbd3659a5f6dd5d2dc20497ec917737210ee9 (patch) | |
tree | d381d0a61b51ed50218460d2ad0eb94bd4caa9b9 /include/rssfuncs.php | |
parent | 1b35d30c1f39c495d1ff2825ccba402bcd8a09fb (diff) |
do not preg_match() tags from article content
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 13 |
1 files changed, 1 insertions, 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 */ - // <a href="..." rel="tag">Xorg</a>, // - - $entry_tags = null; - - preg_match_all("/<a.*?rel=['\"]tag['\"].*?\>([^<]+)<\/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'); |