mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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
This commit is contained in:
parent
dcee0f952a
commit
f85a9bd79d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user