Commit 0ed3528c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 315524: When an invalid action is passed to relogin.cgi,…

Bug 315524: When an invalid action is passed to relogin.cgi, ThrowTemplateError() is called instead of ThrowCodeError() - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
parent 7a3c2eb8
......@@ -201,6 +201,11 @@ elsif ($action eq 'logout') {
$vars->{'message'} = "logged_out";
$target = 'global/message.html.tmpl';
}
# No valid action found
else {
Bugzilla->login(LOGIN_OPTIONAL);
ThrowCodeError('unknown_action', {action => $action});
}
# Display the template
print $cgi->header();
......
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