From: Andrew Dolgov Date: Thu, 12 Jan 2012 08:52:55 +0000 (+0400) Subject: cache_images: set a lower size limit for stuff to cache X-Git-Tag: 1.5.9~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b8379e69792d41c62fa656ebbfb159fabe2e633d;p=tt-rss.git cache_images: set a lower size limit for stuff to cache --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 5502c9f5..96e8cbd4 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1335,7 +1335,7 @@ if (!file_exists($local_filename)) { $file_content = fetch_file_contents($src); - if ($file_content) { + if ($file_content && strlen($file_content) > 1024) { file_put_contents($local_filename, $file_content); } }