fix ttrss_feeds.icon_url handling

This commit is contained in:
Andrew Dolgov 2010-11-11 11:52:44 +03:00
parent 025e43b40d
commit 98833033a2
1 changed files with 3 additions and 4 deletions

View File

@ -728,13 +728,12 @@
// print "I: " . $rss->channel["image"]["url"]; // print "I: " . $rss->channel["image"]["url"];
if (!$use_simplepie) { if (!$use_simplepie) {
$icon_url = $rss->image["url"]; $icon_url = db_escape_string($rss->image["url"]);
} else { } 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)) { if ($icon_url && $orig_icon_url != $icon_url) {
$icon_url = db_escape_string($icon_url);
db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'"); db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
} }