Commit a09564dd authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 480862: relogin.cgi now just throws an error by default (should redirect to…

Bug 480862: relogin.cgi now just throws an error by default (should redirect to index.cgi) - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent cab5e09a
......@@ -37,13 +37,17 @@ use Date::Format;
my $template = Bugzilla->template;
my $cgi = Bugzilla->cgi;
my $action = $cgi->param('action');
my $action = $cgi->param('action') || '';
my $vars = {};
my $target;
if (!$action) {
# redirect to index.cgi if no action is defined.
print $cgi->redirect(correct_urlbase() . 'index.cgi');
}
# prepare-sudo: Display the sudo information & login page
if ($action eq 'prepare-sudo') {
elsif ($action eq 'prepare-sudo') {
# We must have a logged-in user to do this
# That user must be in the 'bz_sudoers' group
my $user = Bugzilla->login(LOGIN_REQUIRED);
......
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