1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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
commit ab06e62266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);