From 6cb127d4973da26e351605ebeac0717aed036177 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 20 Apr 2019 08:59:34 +0100 Subject: [PATCH] Fix reversion caused by 6314 (#6685) Signed-off-by: Andrew Thornton --- routers/repo/editor.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 4314218bf3..46f12d66d2 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -273,7 +273,6 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo ctx.RenderWithErr(ctx.Tr("repo.editor.fail_to_update_file", form.TreePath, err), tplEditFile, &form) } } else { - ctx.Redirect(ctx.Repo.RepoLink + "/src/branch/" + branchName + "/" + strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(cleanUploadFileName(form.TreePath))) ctx.Redirect(ctx.Repo.RepoLink + "/src/branch/" + util.PathEscapeSegments(branchName) + "/" + util.PathEscapeSegments(form.TreePath)) } }