Skip to content

Commit

Permalink
Protect against baseURLs ending with a '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Feb 24, 2024
1 parent 106760c commit 1e1ac5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@ protected function importSubmission(Event $event, EventData $data): void
// Relative URL, prepend the base URL.
$zipUrl = ($this->basePath ?? '') . $zipUrl;
}
$zipUrl = str_replace('//', '/', $zipUrl);

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

Expand Down

0 comments on commit 1e1ac5e

Please sign in to comment.