Skip to content

Commit

Permalink
Remove all extra '/' from shadow sources
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Nov 7, 2023
1 parent 704bd4c commit 254feab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Entity/ExternalContestSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getSource(): string

public function setSource(string $source): ExternalContestSource
{
if (str_ends_with($source, '/')) {
while (str_ends_with($source, '/')) {
$source = substr($source, 0, -1);
}
$this->source = $source;
Expand Down

0 comments on commit 254feab

Please sign in to comment.