From 8978bb5442bbb57b7f700babfb9658229da75803 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Thu, 7 Mar 2024 12:35:09 +0100 Subject: [PATCH] post.php: fix bad call to download_file_into with wrong argument --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 248b372c..e5a89354 100644 --- a/post.php +++ b/post.php @@ -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'] . '
Curl says: ' . $dl_err);