Skip to content

Commit fb2ba60

Browse files
vmcjnickygerritsen
authored andcommitted
Protect against baseURLs ending with a '/'
1 parent ca39490 commit fb2ba60

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
@@ -1454,6 +1454,7 @@ protected function importSubmission(Event $event, EventData $data): void
14541454
// Relative URL, prepend the base URL.
14551455
$zipUrl = ($this->basePath ?? '') . $zipUrl;
14561456
}
1457+
$zipUrl = str_replace('//', '/', $zipUrl);
14571458

14581459
$tmpdir = $this->dj->getDomjudgeTmpDir();
14591460

0 commit comments

Comments
 (0)