From: Andrew Dolgov Date: Thu, 11 Nov 2010 13:21:53 +0000 (+0300) Subject: try to validate feed-specific icon before adding it to the database X-Git-Tag: 1.5.0~277 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=85469e1baa26347e12f7456fc729a1bc32c21066;p=tt-rss.git try to validate feed-specific icon before adding it to the database --- diff --git a/functions.php b/functions.php index 8f60254b..2102836f 100644 --- a/functions.php +++ b/functions.php @@ -728,7 +728,9 @@ } if ($icon_url && $orig_icon_url != $icon_url) { - db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'"); + 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']) {