From: Andrew Dolgov Date: Thu, 11 Nov 2010 08:52:44 +0000 (+0300) Subject: fix ttrss_feeds.icon_url handling X-Git-Tag: 1.5.0~292 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=98833033a2543724dda21e78880a7c88b8a329dd;p=tt-rss.git fix ttrss_feeds.icon_url handling --- diff --git a/functions.php b/functions.php index a9a7cea5..0eb1987b 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'"); }