diff options
author | Jason Song <i@wolfogre.com> | 2024-09-30 10:28:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 02:28:09 +0000 |
commit | 13283873e9d523d5a5557f55d64f702c1a9f76ec (patch) | |
tree | 64d279628645732743129a23868f304f01bc3a3f /routers/api/v1 | |
parent | 5015de4d9ae0765e7f79073a638d8da3a931f05b (diff) | |
download | gitea-13283873e9d523d5a5557f55d64f702c1a9f76ec.tar.gz gitea-13283873e9d523d5a5557f55d64f702c1a9f76ec.zip |
Ensure `GetCSRF` doesn't return an empty token (#32130)
Since page templates keep changing, some pages that contained forms with
CSRF token no longer have them.
It leads to some calls of `GetCSRF` returning an empty string, which
fails the tests. Like
https://github.com/go-gitea/gitea/blob/3269b04d61ffe6a7ce462cd05ee150e4491124e8/tests/integration/attachment_test.go#L62-L63
The test did try to get the CSRF token and provided it, but it was
empty.
Diffstat (limited to 'routers/api/v1')
0 files changed, 0 insertions, 0 deletions