mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 20:18:45 +00:00
fix(problem/remote): set size to 0 when submitting from archive
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
75f6adb4ff
commit
9321c8e3e4
@ -131,6 +131,8 @@ function handleUpload($zip_file_name, $content, $tot_size) {
|
|||||||
$zip_file->open(UOJContext::storagePath() . $zip_file_name, ZipArchive::OVERWRITE);
|
$zip_file->open(UOJContext::storagePath() . $zip_file_name, ZipArchive::OVERWRITE);
|
||||||
$zip_file->addFromString('answer.code', '');
|
$zip_file->addFromString('answer.code', '');
|
||||||
$zip_file->close();
|
$zip_file->close();
|
||||||
|
|
||||||
|
$tot_size = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user