diff options
author | Marios Andreopoulos <opensource@andmarios.com> | 2014-08-25 20:35:23 +0300 |
---|---|---|
committer | Marios Andreopoulos <opensource@andmarios.com> | 2014-08-25 20:35:23 +0300 |
commit | cd0ddcfa01ea06ff64e4a05032f718a4b3097c25 (patch) | |
tree | 4afb6da183459d25f4a80f9122820be64ccab4e9 /routers | |
parent | 3d79f59671b7e74ea1c66cb7bcb09bc85575e787 (diff) | |
download | gitea-cd0ddcfa01ea06ff64e4a05032f718a4b3097c25.tar.gz gitea-cd0ddcfa01ea06ff64e4a05032f718a4b3097c25.zip |
fix typo
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
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())) |