From d240a9bc90265ede91bdfb74c5a1c49c8029d796 Mon Sep 17 00:00:00 2001 From: Clemens Date: Wed, 3 Apr 2024 10:25:40 +0200 Subject: [PATCH] trim trailing semicolon --- routers/web/repo/setting/setting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go index 04ff15e270..4d5fa93317 100644 --- a/routers/web/repo/setting/setting.go +++ b/routers/web/repo/setting/setting.go @@ -195,6 +195,7 @@ func SettingsPost(ctx *context.Context) { } federationRepos := strings.TrimSpace(form.FederationRepos) + federationRepos = strings.TrimSuffix(federationRepos, ";") maxFederatedRepoStrLength := 2048 errs := validation.ValidateMaxLen(federationRepos, maxFederatedRepoStrLength, "federationRepos")