Skip to content

Commit 82b19c0

Browse files
vmcjnickygerritsen
authored andcommitted
Be lenient as we can reasonably assume this is a ZIP file
1 parent 72ee993 commit 82b19c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ protected function importSubmission(Event $event, EventData $data): void
14381438
'message' => 'No source files in event',
14391439
]);
14401440
$submissionDownloadSucceeded = false;
1441-
} elseif (($data->files[0]->mime ?? null) !== 'application/zip') {
1441+
} elseif ($data->files[0]->mime !== null && $data->files[0]->mime !== 'application/zip') {
14421442
$this->addOrUpdateWarning($event, $data->id, ExternalSourceWarning::TYPE_SUBMISSION_ERROR, [
14431443
'message' => 'Non-ZIP source files in event',
14441444
]);

0 commit comments

Comments
 (0)