From ee0ff210bb7dcabc19b77f79d20ff3485ee1470d Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 12 Jan 2023 08:56:44 +0800 Subject: [PATCH] fix(web/problem): answer_form->extra_validator --- 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 d9ef9c6..40757b3 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -193,7 +193,7 @@ if ($pre_submit_check_ret === true && !$no_more_submission) { 'FS::randomAvailableSubmissionFileName', 'handleUpload' ); - $zip_answer_form->extra_validators[] = $submission_extra_validator; + $zip_answer_form->extra_validator = $submission_extra_validator; $zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions'; $zip_answer_form->runAtServer(); }