增加前端上传签名

This commit is contained in:
icret
2023-03-05 23:11:00 +08:00
parent 133bd5c03a
commit a7ab58f4b9
4 changed files with 5 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ if (empty($_FILES['file'])) {
}
// sign
if (empty($_POST['sign']) || $_POST['sign'] !== md5($config['password'] . date('YmdH'))) {
if (empty($_REQUEST['sign']) || $_REQUEST['sign'] !== date('YmdH')) {
exit(json_encode(array(
"result" => "failed",
"code" => 403,