From 0526ffdd4c5571533f1612a76cbc9acf0bb257cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Nov 2010 20:46:32 +0300 Subject: [PATCH] update_rss_feed: respect size limit of feeds.icon_url --- functions.php | 2 ++ 1 file changed, 2 insertions(+) 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'"); -- 2.39.5