summaryrefslogtreecommitdiffstats
path: root/options/locale
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-07-08 14:57:24 +0100
committerGitHub <noreply@github.com>2021-07-08 15:57:24 +0200
commitd06f9ce27452ec0b80d548242bf59d65f89952bf (patch)
tree4aa1997f067b0fa420aee731eb40bddbdfd1a5a8 /options/locale
parentfc1607b3686a5c8c79b9a7853c065a68dcd5218b (diff)
downloadgitea-d06f9ce27452ec0b80d548242bf59d65f89952bf.tar.gz
gitea-d06f9ce27452ec0b80d548242bf59d65f89952bf.zip
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>
Diffstat (limited to 'options/locale')
-rw-r--r--options/locale/locale_en-US.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index dcdfa611ec..7f58a11e73 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -100,6 +100,8 @@ never = Never
[error]
occurred = An error has occurred
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.
+missing_csrf = Bad Request: no CSRF token present
+invalid_csrf = Bad Request: Invalid CSRF token
[startpage]
app_desc = A painless, self-hosted Git service