Bugzilla – Attachment 166732 Details for
Bug 36598
Add CSRF protection to Mojolicious apps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36598: Add comments asking to keep both CSRF checks in sync
Bug-36598-Add-comments-asking-to-keep-both-CSRF-ch.patch (text/plain), 1.17 KB, created by
Victor Grousset/tuxayo
on 2024-05-14 18:40:35 UTC
(
hide
)
Description:
Bug 36598: Add comments asking to keep both CSRF checks in sync
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-05-14 18:40:35 UTC
Size:
1.17 KB
patch
obsolete
>From 149be76c9fe30449ab99db907a1e3965cb39fa49 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 14 May 2024 09:34:31 +0200 >Subject: [PATCH] Bug 36598: Add comments asking to keep both CSRF checks in > sync > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/App/Plugin/CSRF.pm | 2 ++ > Koha/Middleware/CSRF.pm | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/Koha/App/Plugin/CSRF.pm b/Koha/App/Plugin/CSRF.pm >index 01ecb3897d..5e487fb097 100644 >--- a/Koha/App/Plugin/CSRF.pm >+++ b/Koha/App/Plugin/CSRF.pm >@@ -62,6 +62,8 @@ this case, no verification is done. > > =cut > >+# If you need to update the logic here, please also update Koha::Middleware::CSRF >+ > sub register { > my ( $self, $app, $conf ) = @_; > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index b34208ec6c..67e2aa88c0 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -20,6 +20,8 @@ use Modern::Perl; > use parent qw(Plack::Middleware); > use Plack::Response; > >+# If you need to update the logic here, please also update Koha::App::Plugin::CSRF >+ > sub call { > my ( $self, $env ) = @_; > my $req = Plack::Request->new($env); >-- >2.45.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36598
:
164847
|
164848
|
164870
|
165075
|
165076
|
166094
|
166634
|
166673
|
166675
|
166727
|
166728
|
166729
|
166730
|
166731
|
166732
|
166733
|
171119
|
171120
|
171121
|
171122
|
171123
|
171124
|
171125