Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

remove extra comma

This commit is contained in:
Marios Andreopoulos 2014-08-25 20:07:47 +03:00
parent 12639c577f
commit b40922f4d4

View file

@ -172,7 +172,7 @@ func SettingsSSHKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm) {
}
// Remove newline characters from form.KeyContent
cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1),
cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1)
if ok, err := models.CheckPublicKeyString(cleanKeyContent); !ok {
ctx.Flash.Error(ctx.Tr("form.invalid_ssh_key", err.Error()))