mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
trim trailing semicolon
This commit is contained in:
parent
5671566df6
commit
d240a9bc90
|
@ -195,6 +195,7 @@ func SettingsPost(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
federationRepos := strings.TrimSpace(form.FederationRepos)
|
federationRepos := strings.TrimSpace(form.FederationRepos)
|
||||||
|
federationRepos = strings.TrimSuffix(federationRepos, ";")
|
||||||
|
|
||||||
maxFederatedRepoStrLength := 2048
|
maxFederatedRepoStrLength := 2048
|
||||||
errs := validation.ValidateMaxLen(federationRepos, maxFederatedRepoStrLength, "federationRepos")
|
errs := validation.ValidateMaxLen(federationRepos, maxFederatedRepoStrLength, "federationRepos")
|
||||||
|
|
Loading…
Reference in a new issue