Bugzilla – Attachment 166776 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), 771 bytes, created by
Jonathan Druart
on 2024-05-15 12:48:11 UTC
(
hide
)
Description:
Bug 36863: Deal with non-listed methods in CSRF plack middleware
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-05-15 12:48:11 UTC
Size:
771 bytes
patch
obsolete
>From 7b697c8f27004177b4da2fac0224b5aaf66dedc0 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 > >--- > Koha/Middleware/CSRF.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index b34208ec6c4..784552ff873 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -71,6 +71,8 @@ sub call { > $error = "wrong_csrf_token"; > } > } >+ } else { >+ $error = sprintf "unknown or unsupported method %s", $request_method; > } > > #NOTE: It is essential to check for this environmental variable. >-- >2.34.1
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