]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_zz_imgproxy/init.php
implement hard limits on downloaded data size for general fetching and cache plugins...
[tt-rss.git] / plugins / af_zz_imgproxy / init.php
old mode 100644 (file)
new mode 100755 (executable)
index 935cbdb..1c1e99a
@@ -61,7 +61,7 @@ class Af_Zz_ImgProxy extends Plugin {
                        send_local_file($local_filename);
 
                } else {
-                       $data = fetch_file_contents(array("url" => $url));
+                       $data = fetch_file_contents(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
 
                        if ($data) {