try to validate feed-specific icon before adding it to the database

This commit is contained in:
Andrew Dolgov 2010-11-11 16:21:53 +03:00
parent d90c741e6f
commit 85469e1baa
1 changed files with 3 additions and 1 deletions

View File

@ -728,8 +728,10 @@
}
if ($icon_url && $orig_icon_url != $icon_url) {
if (USE_CURL_FOR_ICONS || url_validate($icon_url)) {
db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
}
}
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
_debug("update_rss_feed: loading filters...");