Redirect on bad CSRF instead of presenting bad page #14937

Merged
lunny merged 5 commits from invalid-csrf-redirect into main 2021-07-08 13:57:25 +00:00
Contributor

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

Fix #14167

Signed-off-by: Andrew Thornton art27@cantab.net

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 Fix #14167 Signed-off-by: Andrew Thornton <art27@cantab.net>
jpraet approved these changes 2021-06-30 21:06:06 +00:00
6543 (Migrated from github.com) approved these changes 2021-07-08 13:05:41 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#14937
No description provided.