diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 52895ff..145e90b 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -131,6 +131,8 @@ function handleUpload($zip_file_name, $content, $tot_size) { $zip_file->open(UOJContext::storagePath() . $zip_file_name, ZipArchive::OVERWRITE); $zip_file->addFromString('answer.code', ''); $zip_file->close(); + + $tot_size = 0; } }