From d56069c56d0adec39a815e7592ac868dc847afb1 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 18 Jul 2011 02:27:25 +0200 Subject: Bug 670128: Missing explicit exit after calls to $cgi->redirect(), making the rest of the scripts to be executed r=dkl a=LpSolit --- post_bug.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index e6b77f8ea..6d6ed746c 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -55,7 +55,10 @@ my $vars = {}; ###################################################################### # redirect to enter_bug if no field is passed. -print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi') unless $cgi->param(); +unless ($cgi->param()) { + print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi'); + exit; +} # Detect if the user already used the same form to submit a bug my $token = trim($cgi->param('token')); -- cgit v1.2.3-24-g4f1b