]> git.wh0rd.org - tt-rss.git/commitdiff
cache_images: set a lower size limit for stuff to cache
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 12 Jan 2012 08:52:55 +0000 (12:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 12 Jan 2012 08:52:55 +0000 (12:52 +0400)
include/rssfuncs.php

index 5502c9f50f7f870d9ee05bd8aa0a25f1ad43f625..96e8cbd44747da4e5f36e2b5717ba51cc73ec2c8 100644 (file)
                                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);
                                        }
                                }