Bugzilla – Attachment 168303 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: (QA follow-up): tidy up code
Bug-36863-QA-follow-up-tidy-up-code.patch (text/plain), 940 bytes, created by
Chris Cormack
on 2024-06-29 23:25:34 UTC
(
hide
)
Description:
Bug 36863: (QA follow-up): tidy up code
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2024-06-29 23:25:34 UTC
Size:
940 bytes
patch
obsolete
>From 7fcc003fbe975884eb22b686b083aef05ee6734d Mon Sep 17 00:00:00 2001 >From: Victor Grousset/tuxayo <victor@tuxayo.net> >Date: Mon, 3 Jun 2024 20:11:24 +0200 >Subject: [PATCH] Bug 36863: (QA follow-up): tidy up code > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > Koha/Middleware/CSRF.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index 314c311aa6a..29b1e1ae25c 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -76,8 +76,7 @@ sub call { > $error = "wrong_csrf_token"; > } > } >- } >- elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) { >+ } elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) { > $error = sprintf "unknown or unsupported method %s", $request_method; > } > >-- >2.39.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