]> source.dussan.org Git - gitea.git/commit
Avoid double-unescaping of form value (#26853)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 1 Sep 2023 12:01:36 +0000 (20:01 +0800)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 12:01:36 +0000 (12:01 +0000)
commitf01bed2443c32b8017a8dc31ca0161bd76bf3251
tree8fc33df0db6fa0fc374db5e09e728f9bab7589cf
parente8aae43f56fedd6f7b04affd378c2c4ed2af9d78
Avoid double-unescaping of form value (#26853)

1. The old `prepareQueryArg` did double-unescaping of form value.
2. By the way, remove the unnecessary `ctx.Flash = ...` in
`MockContext`.

Co-authored-by: Giteabot <teabot@gitea.io>
modules/context/utils.go
modules/contexttest/context_tests.go
tests/integration/api_issue_test.go
tests/integration/issue_test.go