Fixed 404 caused by unexpected question mark

This fixes 404 caused when creating new files or wiki pages with question marks. Amended to force CI rebuild
This commit is contained in:
Flare 2016-09-18 23:46:52 +08:00
parent 7e15ff9486
commit 01c5233b53
No known key found for this signature in database
GPG key ID: 762EE3D369C1A772
3 changed files with 4 additions and 4 deletions

View file

@ -264,7 +264,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
return
}
ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + form.TreePath)
ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(form.TreePath))
}
func EditFilePost(ctx *context.Context, form auth.EditRepoFileForm) {