From 254feab0f99d6ba48073f5b905d120c076cc683d Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:20:24 +0100 Subject: [PATCH] Remove all extra '/' from shadow sources --- webapp/src/Entity/ExternalContestSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Entity/ExternalContestSource.php b/webapp/src/Entity/ExternalContestSource.php index 5f04102e67..06f6e1ca69 100644 --- a/webapp/src/Entity/ExternalContestSource.php +++ b/webapp/src/Entity/ExternalContestSource.php @@ -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;