]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not preg_match() tags from article content
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 09:56:36 +0000 (13:56 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 09:56:36 +0000 (13:56 +0400)
include/rssfuncs.php

index 57413639af556a7622402fc59b64205603ffe7cf..a28cb2063077d744d5d62d558790dcde9ef17591 100644 (file)
                                        _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');