mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
fix: 7794800603
This commit is contained in:
parent
4c0167ee6e
commit
46592477c5
@ -120,16 +120,15 @@ function handleUpload($zip_file_name, $content, $tot_size) {
|
||||
$content['remote_submission_id'] = $_POST['answer_remote_submission_id'];
|
||||
$content['config'][] = ['remote_submission_id', $_POST['answer_remote_submission_id']];
|
||||
|
||||
$content['config'] = array_filter(
|
||||
$content['config'] = array_values(array_filter(
|
||||
$content['config'],
|
||||
function ($key) {
|
||||
return !strEndWith($key, '_language');
|
||||
function ($row) {
|
||||
return !strEndWith($row[0], '_language');
|
||||
},
|
||||
ARRAY_FILTER_USE_KEY
|
||||
);
|
||||
));
|
||||
|
||||
$zip_file = new ZipArchive();
|
||||
$zip_file->open(UOJContext::storagePath() . $zip_file_name, ZipArchive::CREATE);
|
||||
$zip_file->open(UOJContext::storagePath() . $zip_file_name, ZipArchive::OVERWRITE);
|
||||
$zip_file->addFromString('answer.code', '');
|
||||
$zip_file->close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user