Merge pull request #17 from LefsFlarey/issue/3666

Fixed 404 caused by unexpected question mark
This commit is contained in:
Matthias Loibl 2016-11-08 18:28:00 +01:00 committed by GitHub
commit 45c4539c61
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) {