Bugzilla – Attachment 94936 Details for
Bug 23836
tracklinks.pl should not forward if TrackClicks is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23836: exit after output_error
Bug-23836-exit-after-outputerror.patch (text/plain), 1.06 KB, created by
Marcel de Rooy
on 2019-11-01 07:02:37 UTC
(
hide
)
Description:
Bug 23836: exit after output_error
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-11-01 07:02:37 UTC
Size:
1.06 KB
patch
obsolete
>From 0e014b1a5df6e9ed2603e584dffdf0e9b4c8e51a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 30 Oct 2019 13:15:38 +0100 >Subject: [PATCH] Bug 23836: exit after output_error >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/tracklinks.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl >index 80794cb50d..2c0d213617 100755 >--- a/opac/tracklinks.pl >+++ b/opac/tracklinks.pl >@@ -34,7 +34,10 @@ my $biblionumber = $cgi->param('biblionumber') || 0; > my $itemnumber = $cgi->param('itemnumber') || 0; > > my $tracking_method = C4::Context->preference('TrackClicks'); >-output_error( $cgi, '404' ) unless $tracking_method; >+unless ( $tracking_method ) { >+ output_error( $cgi, '404' ); >+ exit; >+} > my $tracker = Koha::Linktracker->new( > { trackingmethod => $tracking_method } ); > if ($uri && ($biblionumber || $itemnumber) ) { >-- >2.11.0
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 23836
:
94376
|
94872
|
94873
|
94935
| 94936