Skip to content

Commit 75e4d15

Browse files
vmcjnickygerritsen
authored andcommitted
Protect against baseURLs ending with a '/'
1 parent 82b19c0 commit 75e4d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,7 @@ protected function importSubmission(Event $event, EventData $data): void
14491449
// Relative URL, prepend the base URL.
14501450
$zipUrl = ($this->basePath ?? '') . $zipUrl;
14511451
}
1452+
$zipUrl = str_replace('//', '/', $zipUrl);
14521453

14531454
$tmpdir = $this->dj->getDomjudgeTmpDir();
14541455

0 commit comments

Comments
 (0)