Merge pull request #684 from Zankaria/fix-bad-download-parameter

post.php: fix bad call to download_file_into with wrong argument
This commit is contained in:
Lorenzo Yario
2024-03-11 16:13:37 -07:00
committed by GitHub

View File

@@ -128,7 +128,7 @@ function download_file_from_url($file_url, $request_timeout, $allowed_extensions
$fd = fopen($tmp_file, 'w'); $fd = fopen($tmp_file, 'w');
$dl_err = download_file_into($tmp_file, $request_timeout, $fd); $dl_err = download_file_into($fd, $request_timeout, $fd);
fclose($fd); fclose($fd);
if ($dl_err !== null) { if ($dl_err !== null) {
throw new Exception($error_array['nomove'] . '<br/>Curl says: ' . $dl_err); throw new Exception($error_array['nomove'] . '<br/>Curl says: ' . $dl_err);