fix(problem/remote): set size to 0 when submitting from archive
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-07 21:20:42 +08:00
parent 75f6adb4ff
commit 9321c8e3e4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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;
}
}