Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid double-unescaping of form value (#26853) | wxiaoguang | 2023-09-01 | 1 | -1/+0 |
| | | | | | | | 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> | ||||
* | Move web/api context related testing function into a separate package (#26859) | wxiaoguang | 2023-09-01 | 1 | -0/+159 |
Just like `models/unittest`, the testing helper functions should be in a separate package: `contexttest` And complete the TODO: > // TODO: move this function to other packages, because it depends on "models" package |