From 98833033a2543724dda21e78880a7c88b8a329dd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Nov 2010 11:52:44 +0300 Subject: [PATCH] fix ttrss_feeds.icon_url handling --- functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index a9a7cea51..0eb1987bb 100644 --- a/functions.php +++ b/functions.php @@ -728,13 +728,12 @@ // print "I: " . $rss->channel["image"]["url"]; if (!$use_simplepie) { - $icon_url = $rss->image["url"]; + $icon_url = db_escape_string($rss->image["url"]); } else { - $icon_url = $rss->get_image_url(); + $icon_url = db_escape_string($rss->get_image_url()); } - if ($icon_url && !$orig_icon_url != db_escape_string($icon_url)) { - $icon_url = db_escape_string($icon_url); + if ($icon_url && $orig_icon_url != $icon_url) { db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'"); }