You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redirect on bad CSRF instead of presenting bad page
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 <[email protected]>
Copy file name to clipboardExpand all lines: options/locale/locale_en-US.ini
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,8 @@ error404 = The page you are trying to reach either <strong>does not exist</stron
96
96
[error]
97
97
occurred = An error has occurred
98
98
report_message = If you are sure this is a Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.
0 commit comments