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:
lpsolit%gmail.com 2005-11-21 19:17:12 +00:00
parent dcee0f952a
commit f85a9bd79d

View File

@ -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();