From: Marios Andreopoulos Date: Mon, 25 Aug 2014 17:35:23 +0000 (+0300) Subject: fix typo X-Git-Tag: v0.9.99~1872^2~1^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd0ddcfa01ea06ff64e4a05032f718a4b3097c25;p=gitea.git fix typo --- diff --git a/routers/user/setting.go b/routers/user/setting.go index 028e75212d..37039041c4 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -172,7 +172,7 @@ func SettingsSSHKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm) { } // Remove newline characters from form.KeyContent - cleanContent := strings.Replace(form.Content, "\n", "", -1) + cleanContent := string.Replace(form.Content, "\n", "", -1) if ok, err := models.CheckPublicKeyString(cleanContent); !ok { ctx.Flash.Error(ctx.Tr("form.invalid_ssh_key", err.Error()))