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")