From: Andrew Dolgov Date: Mon, 18 Mar 2013 20:42:59 +0000 (+0400) Subject: properly fix the cache_images issue (refs #578) X-Git-Tag: 1.7.5~128 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f935d98e5d81c94f926d6b9cf232ea9414fe40ab;p=tt-rss.git properly fix the cache_images issue (refs #578) --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index a95280a3..1180b0ad 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -573,6 +573,8 @@ $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"); @@ -581,7 +583,7 @@ 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);