Bugzilla – Attachment 167572 Details for
Bug 37040
ErrorDocument accidentally setting off CSRF
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37040: (QA follow-up) Tidy file
Bug-37040-QA-follow-up-Tidy-file.patch (text/plain), 961 bytes, created by
Matt Blenkinsop
on 2024-06-07 12:34:54 UTC
(
hide
)
Description:
Bug 37040: (QA follow-up) Tidy file
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-06-07 12:34:54 UTC
Size:
961 bytes
patch
obsolete
>From aa73bc1e2d5cd0925a229f82df644956f8a2c01f Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Fri, 7 Jun 2024 12:33:24 +0000 >Subject: [PATCH] Bug 37040: (QA follow-up) Tidy file > >QA tests were failing for tidyness so this patch addresses that > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > Koha/Middleware/CSRF.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm >index 8850d0ef80..5d4216e5f0 100644 >--- a/Koha/Middleware/CSRF.pm >+++ b/Koha/Middleware/CSRF.pm >@@ -78,7 +78,8 @@ sub call { > } > } > >- if ( $error ) { >+ if ($error) { >+ > #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here > warn $error; > my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] ); >-- >2.39.3 (Apple Git-146)
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 37040
:
167521
|
167560
|
167571
| 167572 |
167620