diff options
author | Unknwon <u@gogs.io> | 2016-12-21 04:08:23 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-21 04:08:23 -0500 |
commit | 67380cf47b6dfd6ff9999acc73dd7da8f620948f (patch) | |
tree | 48ff5c4f243346df3cb784f52b8021d417b1787a /routers/repo/editor.go | |
parent | 39fdb0f9c4f1668b47ff43665d525608a87fb0e6 (diff) |
Minor code fix
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r-- | routers/repo/editor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index f572615e..d4d49fda 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -264,7 +264,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo return } - ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(form.TreePath)) + ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + template.EscapePound(form.TreePath)) } func EditFilePost(ctx *context.Context, form auth.EditRepoFileForm) { |