From: Andrew Dolgov Date: Sat, 13 Nov 2010 17:46:32 +0000 (+0300) Subject: update_rss_feed: respect size limit of feeds.icon_url X-Git-Tag: 1.5.0~232 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0526ffdd4c5571533f1612a76cbc9acf0bb257cd;p=tt-rss.git update_rss_feed: respect size limit of feeds.icon_url --- diff --git a/functions.php b/functions.php index ed781586..b768d217 100644 --- a/functions.php +++ b/functions.php @@ -738,6 +738,8 @@ $icon_url = db_escape_string($rss->get_image_url()); } + $icon_url = substr($icon_url, 0, 250); + 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'");