]> git.wh0rd.org - tt-rss.git/commitdiff
properly fix the cache_images issue (refs #578)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 20:42:59 +0000 (00:42 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 20:42:59 +0000 (00:42 +0400)
include/rssfuncs.php

index a95280a3180bc889da92a4216c1bbbdf700b79e9..1180b0adb662b75de08cf9f55e0796b531f86a83 100644 (file)
                                $entry_author = db_escape_string($article["author"]);
                                $entry_link = db_escape_string($article["link"]);
                                $entry_plugin_data = db_escape_string($article["plugin_data"]);
+                               $entry_content = $article["content"]; // escaped below
+
 
                                if ($debug_enabled) {
                                        _debug("update_rss_feed: plugin data: $entry_plugin_data");
                                if ($cache_images && is_writable(CACHE_DIR . '/images'))
                                        $entry_content = cache_images($entry_content, $site_url, $debug_enabled);
 
-                               $entry_content = db_escape_string($article["content"], false);
+                               $entry_content = db_escape_string($entry_content, false);
 
                                $content_hash = "SHA1:" . sha1($entry_content);