From 3493cffd5490d315130f728c13d0152b2ca5e24b 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: Martin Renvoize --- 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.39.5