]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent escaping of article link in the database when using simplepie (refs #472)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 09:53:38 +0000 (13:53 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 09:53:38 +0000 (13:53 +0400)
include/rssfuncs.php

index da2f28a9409a15af484e9f415a11a73bd5fc5f3c..57413639af556a7622402fc59b64205603ffe7cf 100644 (file)
                                }
 
                                $entry_title = $item->get_title();
-                               $entry_link = rewrite_relative_url($site_url, $item->get_link());
+
+                               $entry_link = rewrite_relative_url($site_url, htmlspecialchars_decode($item->get_link()));
 
                                if ($debug_enabled) {
                                        _debug("update_rss_feed: title $entry_title");
                                        $article = $plugin->hook_article_filter($article);
                                }
 
-                               $entry_title = $article["title"];
-                               $entry_content = $article["content"];
                                $entry_tags = $article["tags"];
-                               $entry_author = $article["author"];
-
-                               $entry_content = db_escape_string($entry_content, false);
-                               $entry_title = db_escape_string($entry_title);
-                               $entry_author = db_escape_string($entry_author);
-                               $entry_link = db_escape_string($entry_link);
+                               $entry_content = db_escape_string($article["content"], false);
+                               $entry_title = db_escape_string($article["title"]);
+                               $entry_author = db_escape_string($article["author"]);
+                               $entry_link = db_escape_string($article["link"]);
 
                                $content_hash = "SHA1:" . sha1(strip_tags($entry_content));