]> source.dussan.org Git - gitea.git/commit
Redirect on bad CSRF instead of presenting bad page (#14937)
authorzeripath <art27@cantab.net>
Thu, 8 Jul 2021 13:57:24 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Jul 2021 13:57:24 +0000 (15:57 +0200)
commitd06f9ce27452ec0b80d548242bf59d65f89952bf
tree4aa1997f067b0fa420aee731eb40bddbdfd1a5a8
parentfc1607b3686a5c8c79b9a7853c065a68dcd5218b
Redirect on bad CSRF instead of presenting bad page (#14937)

The current CSRF handler is a bit harsh with bad CSRF tokens on webpages
I think we can be a little kinder and redirect to base page with a flash error

Signed-off-by: Andrew Thornton <art27@cantab.net>
integrations/repo_branch_test.go
modules/context/csrf.go
options/locale/locale_en-US.ini