mirror of
1
Fork 0

trim trailing semicolon

This commit is contained in:
Clemens 2024-04-03 10:25:40 +02:00
parent 5671566df6
commit d240a9bc90
1 changed files with 1 additions and 0 deletions

View File

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