]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 670128: Missing explicit exit after calls to $cgi->redirect(), making the rest...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 Jul 2011 00:29:12 +0000 (02:29 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 Jul 2011 00:29:12 +0000 (02:29 +0200)
r=dkl a=LpSolit

post_bug.cgi
relogin.cgi

index a0cfaf29d877e24f08b10c51b79b9e94bab05b74..8486ba032f67e3bb7040e739a6e17319c4fd31a8 100755 (executable)
@@ -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'));
index 0e04b1bdc6b548ac6600ae77c9b496d476d4fdb7..d31c8099327ba8d5320caa652a7ace6b5a04937b 100755 (executable)
@@ -45,6 +45,7 @@ my $target;
 if (!$action) {
     # redirect to index.cgi if no action is defined.
     print $cgi->redirect(correct_urlbase() . 'index.cgi');
+    exit;
 }
 # prepare-sudo: Display the sudo information & login page
 elsif ($action eq 'prepare-sudo') {