aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-04-20 08:59:34 +0100
committerGitHub <noreply@github.com>2019-04-20 08:59:34 +0100
commit6cb127d4973da26e351605ebeac0717aed036177 (patch)
tree682fd3c532b11188410eb927b8ffad604f3c8338 /routers/repo/editor.go
parentb33f7f792bf3a1a1e54639db94cc80b84f68ebfd (diff)
downloadgitea-6cb127d4973da26e351605ebeac0717aed036177.tar.gz
gitea-6cb127d4973da26e351605ebeac0717aed036177.zip
Fix reversion caused by 6314 (#6685)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r--routers/repo/editor.go1
1 files changed, 0 insertions, 1 deletions
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))
}
}