Skip to content

Commit 1e1ac5e

Browse files
committed
Protect against baseURLs ending with a '/'
1 parent 106760c commit 1e1ac5e

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
@@ -1461,6 +1461,7 @@ protected function importSubmission(Event $event, EventData $data): void
14611461
// Relative URL, prepend the base URL.
14621462
$zipUrl = ($this->basePath ?? '') . $zipUrl;
14631463
}
1464+
$zipUrl = str_replace('//', '/', $zipUrl);
14641465

14651466
$tmpdir = $this->dj->getDomjudgeTmpDir();
14661467

0 commit comments

Comments
 (0)