From ba07733ba04011a3e2a89d937e75de4493c87e9b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Oct 2019 13:15:38 +0100 Subject: [PATCH] Bug 23836: exit after output_error Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass --- opac/tracklinks.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl index 2c66efdbe4..df3005e167 100755 --- a/opac/tracklinks.pl +++ b/opac/tracklinks.pl @@ -33,7 +33,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.39.5