Bugzilla – Attachment 112662 Details for
Bug 26692
Add barcode image generator service for OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26692: (QA follow-up) Respond with 401 if patron is not logged in
Bug-26692-QA-follow-up-Respond-with-401-if-patron-.patch (text/plain), 1008 bytes, created by
Kyle M Hall (khall)
on 2020-10-29 11:51:53 UTC
(
hide
)
Description:
Bug 26692: (QA follow-up) Respond with 401 if patron is not logged in
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-10-29 11:51:53 UTC
Size:
1008 bytes
patch
obsolete
>From 170f4734e0cd7cf9106282c3f871b8dc54178443 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 29 Oct 2020 07:51:35 -0400 >Subject: [PATCH] Bug 26692: (QA follow-up) Respond with 401 if patron is not > logged in > >--- > opac/svc/barcode | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/opac/svc/barcode b/opac/svc/barcode >index 2f60f23203..951026454d 100755 >--- a/opac/svc/barcode >+++ b/opac/svc/barcode >@@ -23,6 +23,7 @@ use CGI qw(header); > use GD::Barcode; > > use C4::Auth qw(checkauth); >+use C4::Output qw(output_with_http_headers); > > =head1 NAME > >@@ -92,7 +93,10 @@ below the scannable barcode. > my $input = CGI->new; > > my ( $user, $cookie, $sessionID, $flags ) = checkauth( $input, 1, {}, 'opac' ); >-$user && $sessionID or response_bad_request("User not logged in"); >+unless ( $user && $sessionID ) { >+ output_with_http_headers( $input, undef, undef, 'html', '401 Unauthorized' ); >+ exit; >+} > > binmode(STDOUT); > >-- >2.24.1 (Apple Git-126)
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 26692
:
111727
|
111728
|
111964
|
111975
|
112000
|
112156
|
112157
| 112662 |
139740
|
139741
|
139994