Bugzilla – Attachment 162363 Details for
Bug 36148
Move CSRF check code outside of CGI->new
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36148: Fix header name
Bug-36148-Fix-header-name.patch (text/plain), 972 bytes, created by
Jonathan Druart
on 2024-02-23 08:07:37 UTC
(
hide
)
Description:
Bug 36148: Fix header name
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-02-23 08:07:37 UTC
Size:
972 bytes
patch
obsolete
>From aa4d596a051e235e1c4c7f126e3350027a84989a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 23 Feb 2024 09:07:23 +0100 >Subject: [PATCH] Bug 36148: Fix header name > >--- > Koha/Middleware/CSRF.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index 2d4582f2c4b..41fd1438c2e 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -47,7 +47,7 @@ sub call { > } elsif ( $stateful_methods{$request_method} ) { > > # Get the CSRF token from the param list or the header >- my $csrf_token = $req->param('csrf_token') || $req->header('HTTP_CSRF_TOKEN'); >+ my $csrf_token = $req->param('csrf_token') || $req->header('CSRF_TOKEN'); > > if ( defined $req->param('op') && $original_op !~ m{^cud-} ) { > $error = sprintf "Programming error - op '%s' must start with 'cud-' for %s", $original_op, >-- >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 36148
:
162333
|
162336
|
162359
|
162360
|
162362
|
162363
|
162428
|
162505
|
162506
|
162507
|
162508
|
162509
|
162510