From 10ccb2681564fe3668d671f006a20ae8fbc11396 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 25 Dec 2022 09:35:52 +0800 Subject: [PATCH] chore(web/problem/submit): set default size limit to 100KB --- web/app/libs/uoj-form-lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/libs/uoj-form-lib.php b/web/app/libs/uoj-form-lib.php index 1e03485..620da94 100644 --- a/web/app/libs/uoj-form-lib.php +++ b/web/app/libs/uoj-form-lib.php @@ -735,7 +735,7 @@ function newSubmissionForm($form_name, $requirement, $zip_file_name_gen, $handle $stat = $zip_file->statName($req['file_name']); if ($req['type'] == 'source code') { - $max_size = isset($req['size']) ? (int)$req['size'] : 50; + $max_size = isset($req['size']) ? (int)$req['size'] : 100; if ($stat['size'] > $max_size * 1024) { $zip_file->close(); unlink(UOJContext::storagePath() . $zip_file_name);