summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarios Andreopoulos <opensource@andmarios.com>2014-08-25 20:35:23 +0300
committerMarios Andreopoulos <opensource@andmarios.com>2014-08-25 20:35:23 +0300
commitcd0ddcfa01ea06ff64e4a05032f718a4b3097c25 (patch)
tree4afb6da183459d25f4a80f9122820be64ccab4e9
parent3d79f59671b7e74ea1c66cb7bcb09bc85575e787 (diff)
downloadgitea-cd0ddcfa01ea06ff64e4a05032f718a4b3097c25.tar.gz
gitea-cd0ddcfa01ea06ff64e4a05032f718a4b3097c25.zip
fix typo
-rw-r--r--routers/user/setting.go2
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()))