Bugzilla – Attachment 173350 Details for
Bug 36560
ILS-DI API POSTS cause CSRF errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36560: (QA follow-up) Tidy code
Bug-36560-QA-follow-up-Tidy-code.patch (text/plain), 1.22 KB, created by
Kyle M Hall (khall)
on 2024-10-25 11:50:54 UTC
(
hide
)
Description:
Bug 36560: (QA follow-up) Tidy code
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-10-25 11:50:54 UTC
Size:
1.22 KB
patch
obsolete
>From 7dc2d99517119e3b80746aec0fb99e3130edc957 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 25 Oct 2024 11:45:32 +0000 >Subject: [PATCH] Bug 36560: (QA follow-up) Tidy code > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Middleware/CSRF.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index a41da530544..811c212386e 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -44,7 +44,7 @@ sub call { > my $request_method = $req->method // q{}; > my $uri = $req->uri // q{}; > my $referer = $req->referer // q{No referer}; >- my $request_path = $req->path // q{}; >+ my $request_path = $req->path // q{}; > > my %path_exceptions = ( > '/ilsdi.pl' => 1, >@@ -53,8 +53,8 @@ sub call { > #NOTE: Ignore ErrorDocument requests for CSRF > if ( $env->{'psgix.errordocument.SCRIPT_NAME'} ) { > return $self->app->($env); >- } >- elsif ( $path_exceptions{$request_path} ){ >+ } elsif ( $path_exceptions{$request_path} ) { >+ > #NOTE: Ignore path exceptions for CSRF > return $self->app->($env); > } >-- >2.39.5 (Apple Git-154)
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 36560
:
173114
|
173182
|
173349
| 173350