mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 13:19:15 +00:00
implement hard limits on downloaded data size for general fetching and cache plugins: MAX_DOWNLOAD_FILE_SIZE & MAX_CACHE_FILE_SIZE
This commit is contained in:
2
plugins/af_zz_imgproxy/init.php
Normal file → Executable file
2
plugins/af_zz_imgproxy/init.php
Normal file → Executable file
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user