1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

post.php: fix bad call to download_file_into with wrong argument

This commit is contained in:
Zankaria 2024-03-07 12:35:09 +01:00
parent 4439f1736a
commit 8978bb5442

View File

@ -128,7 +128,7 @@ function download_file_from_url($file_url, $request_timeout, $allowed_extensions
$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);
if ($dl_err !== null) {
throw new Exception($error_array['nomove'] . '<br/>Curl says: ' . $dl_err);