mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +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:
commit
ab06e62266
2
post.php
2
post.php
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user