From 017affe9ba04e0f6d7b8ab7055e8965a6cd4376e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 2 Feb 2023 18:45:26 +0800 Subject: [PATCH] fix(problem/submit): zip_answer_form --- web/app/controllers/problem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 8e289e3..f974a32 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -187,7 +187,7 @@ if ($pre_submit_check_ret === true && !$no_more_submission) { 'FS::randomAvailableSubmissionFileName', 'handleUpload' ); - $zip_answer_form->extra_validator = $submission_extra_validator; + $zip_answer_form->extra_validators[] = $submission_extra_validator; $zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions'; $zip_answer_form->runAtServer(); }