瀏覽代碼

fix remote upload

tags/vichan-4.9.91
czaks 10 年之前
父節點
當前提交
d57dcc5e6e
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      post.php

+ 2
- 1
post.php 查看文件

@@ -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']) {


Loading…
取消
儲存