diff options
author | Andrew Dolgov <[email protected]> | 2018-05-20 11:08:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-05-20 11:08:33 +0300 |
commit | b14f6d58b472e20b3e6cffd54916ea4fea526acd (patch) | |
tree | 269b7d41fe1d32c6728a3db0b674f27bd0552296 /plugins/af_zz_imgproxy/init.php | |
parent | f851cdf3628ba90dac4f1891eae3b1aea9261eb5 (diff) |
implement hard limits on downloaded data size for general fetching and cache plugins: MAX_DOWNLOAD_FILE_SIZE & MAX_CACHE_FILE_SIZE
Diffstat (limited to 'plugins/af_zz_imgproxy/init.php')
-rwxr-xr-x[-rw-r--r--] | plugins/af_zz_imgproxy/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 935cbdbcf..1c1e99ae4 100644..100755 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -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) { |