diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-04 19:25:24 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-04 19:25:24 +0200 |
commit | c1635e24fb78d981a790463cfe35ba552bcaac04 (patch) | |
tree | 64a3aeff358c6b56663ee01be27713f036d89918 /lib/Travelynx/Controller/Traewelling.pm | |
parent | 8cef56a94033c9b4784026e8e809c03beb59db8b (diff) |
use a separate bad_request page for CSRF errors
Diffstat (limited to 'lib/Travelynx/Controller/Traewelling.pm')
-rw-r--r-- | lib/Travelynx/Controller/Traewelling.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm index 31f4a84..71df7f1 100644 --- a/lib/Travelynx/Controller/Traewelling.pm +++ b/lib/Travelynx/Controller/Traewelling.pm @@ -15,8 +15,9 @@ sub settings { and $self->validation->csrf_protect->has_error('csrf_token') ) { $self->render( - 'traewelling', - invalid => 'csrf', + 'bad_request', + csrf => 1, + status => 400 ); return; } |