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

fix remote upload

This commit is contained in:
czaks 2014-04-29 20:50:28 +02:00
parent 84ea61f7ea
commit 1b2f0c740a

View File

@ -320,6 +320,7 @@ if (isset($_POST['delete'])) {
$_FILES['file'] = array(
'name' => basename($url_without_params),
'tmp_name' => $post['file_tmp'],
'file_tmp' => true,
'error' => 0,
'size' => filesize($post['file_tmp'])
);
@ -704,7 +705,7 @@ if (isset($_POST['delete'])) {
chmod($file['file'], 0644);
} elseif (!@move_uploaded_file($file['tmp_name'], $file['file']))
error($config['error']['nomove']);
}
}
}
if ($config['image_reject_repost']) {