diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-07-18 02:27:25 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-07-18 02:27:25 +0200 |
commit | d56069c56d0adec39a815e7592ac868dc847afb1 (patch) | |
tree | 1a2d30a9e506c584d6f06838af585a9435164cb2 | |
parent | 541c3e88d19110b848c5a5d3c074874e6feed5d6 (diff) | |
download | bugzilla-d56069c56d0adec39a815e7592ac868dc847afb1.tar.gz bugzilla-d56069c56d0adec39a815e7592ac868dc847afb1.tar.xz |
Bug 670128: Missing explicit exit after calls to $cgi->redirect(), making the rest of the scripts to be executed
r=dkl a=LpSolit
-rwxr-xr-x | post_bug.cgi | 5 | ||||
-rwxr-xr-x | relogin.cgi | 1 |
2 files changed, 5 insertions, 1 deletions
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')); diff --git a/relogin.cgi b/relogin.cgi index 028f4ddb1..f6a410c05 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -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') { |