Bugzilla – Attachment 167353 Details for
Bug 36863
CSRF Plack middleware doesn't handle the CONNECT HTTP method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36863: Deal with non-listed methods in CSRF plack middleware
Bug-36863-Deal-with-non-listed-methods-in-CSRF-pla.patch (text/plain), 999 bytes, created by
Victor Grousset/tuxayo
on 2024-06-03 18:11:44 UTC
(
hide
)
Description:
Bug 36863: Deal with non-listed methods in CSRF plack middleware
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-06-03 18:11:44 UTC
Size:
999 bytes
patch
obsolete
>From 0ddfa855cabc1ed6b83123d5a98cd31077eaa7b9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 15 May 2024 14:47:30 +0200 >Subject: [PATCH] Bug 36863: Deal with non-listed methods in CSRF plack > middleware > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/Middleware/CSRF.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index b34208ec6c..c73a42e67b 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -72,6 +72,9 @@ sub call { > } > } > } >+ elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) { >+ $error = sprintf "unknown or unsupported method %s", $request_method; >+ } > > #NOTE: It is essential to check for this environmental variable. > #NOTE: If we don't check for it, then we'll also throw an error for the "subrequest" that ErrorDocument uses to >-- >2.45.2
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 36863
:
166776
|
166864
|
167353
|
167354
|
168302
|
168303