]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: respect size limit of feeds.icon_url
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 13 Nov 2010 17:46:32 +0000 (20:46 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 13 Nov 2010 17:46:32 +0000 (20:46 +0300)
functions.php

index ed78158676b529ee57bac7bd4f9cbfb5c0e85a92..b768d217ddabf8ba0c7bd75361a9c14b4d7d45de 100644 (file)
                                $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'");