Commit d56069c5 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 670128: Missing explicit exit after calls to $cgi->redirect(), making the…

Bug 670128: Missing explicit exit after calls to $cgi->redirect(), making the rest of the scripts to be executed r=dkl a=LpSolit
parent 541c3e88
...@@ -55,7 +55,10 @@ my $vars = {}; ...@@ -55,7 +55,10 @@ my $vars = {};
###################################################################### ######################################################################
# redirect to enter_bug if no field is passed. # 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 # Detect if the user already used the same form to submit a bug
my $token = trim($cgi->param('token')); my $token = trim($cgi->param('token'));
......
...@@ -45,6 +45,7 @@ my $target; ...@@ -45,6 +45,7 @@ my $target;
if (!$action) { if (!$action) {
# redirect to index.cgi if no action is defined. # redirect to index.cgi if no action is defined.
print $cgi->redirect(correct_urlbase() . 'index.cgi'); print $cgi->redirect(correct_urlbase() . 'index.cgi');
exit;
} }
# prepare-sudo: Display the sudo information & login page # prepare-sudo: Display the sudo information & login page
elsif ($action eq 'prepare-sudo') { elsif ($action eq 'prepare-sudo') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment