Bugzilla – Attachment 129747 Details for
Bug 29931
Script plugins-enable.pl should check the cookie status before running plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29931: (follow-up) Fix svc/checkouts and return_claims too
Bug-29931-follow-up-Fix-svccheckouts-and-returncla.patch (text/plain), 1.46 KB, created by
Marcel de Rooy
on 2022-01-25 12:24:03 UTC
(
hide
)
Description:
Bug 29931: (follow-up) Fix svc/checkouts and return_claims too
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-01-25 12:24:03 UTC
Size:
1.46 KB
patch
obsolete
>From ef52cf260b1b7501011d42c90486cce500260a97 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 25 Jan 2022 12:21:42 +0000 >Subject: [PATCH] Bug 29931: (follow-up) Fix svc/checkouts and return_claims > too >Content-Type: text/plain; charset=utf-8 > >Adding the same auth_status check here too. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > svc/checkouts | 7 +++++-- > svc/return_claims | 7 +++++-- > 2 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/svc/checkouts b/svc/checkouts >index 30bbee53b1..096d953d1f 100755 >--- a/svc/checkouts >+++ b/svc/checkouts >@@ -33,8 +33,11 @@ use Koha::ItemTypes; > > my $input = CGI->new; > >-my ( $auth_status, $session ) = >- check_cookie_auth( $input->cookie('CGISESSID')); >+my ( $auth_status, $session ) = check_cookie_auth( $input->cookie('CGISESSID')); >+if( $auth_status ne 'ok' ) { >+ print CGI::header( '-status' => '401' ); >+ exit 0; >+} > > my $userid = $session->param('id'); > >diff --git a/svc/return_claims b/svc/return_claims >index 5ac7d49e79..726b756f83 100755 >--- a/svc/return_claims >+++ b/svc/return_claims >@@ -31,8 +31,11 @@ use Koha::Patrons; > > my $input = CGI->new; > >-my ( $auth_status, $session ) = >- check_cookie_auth( $input->cookie('CGISESSID') ); >+my ( $auth_status, $session ) = check_cookie_auth( $input->cookie('CGISESSID') ); >+if( $auth_status ne 'ok' ) { >+ print CGI::header( '-status' => '401' ); >+ exit 0; >+} > > my $userid = $session->param('id'); > >-- >2.20.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 29931
:
129717
|
129721
|
129722
|
129746
|
129747
|
129840
|
129841
|
129842
|
129843
|
129844
|
129845
|
131483