]> source.dussan.org Git - gitea.git/commit
Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) (#26405)
authorGiteabot <teabot@gitea.io>
Wed, 9 Aug 2023 07:31:44 +0000 (15:31 +0800)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 07:31:44 +0000 (07:31 +0000)
commit2d1a7e1cd42b31a62ca627423d088339809238c8
tree54ac85a7606d415322b9661ba4d434433f184b4f
parentdf5558135b3520ad046588e781a3845b7b4aa24b
Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) (#26405)

Backport #26392 by @wxiaoguang

Fix #26389

And complete an old TODO: `ctx.Params does un-escaping,..., which is
incorrect.`

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
modules/context/base.go
routers/api/v1/repo/wiki.go
routers/web/repo/wiki.go
services/wiki/wiki_path.go
services/wiki/wiki_test.go