From: lpsolit%gmail.com <> Date: Tue, 22 Nov 2005 03:17:12 +0000 (+0000) Subject: Bug 315524: When an invalid action is passed to relogin.cgi, ThrowTemplateError(... X-Git-Tag: bugzilla-2.22rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed3528c248cee98c70a20430062e3f5898a2758;p=thirdparty%2Fbugzilla.git Bug 315524: When an invalid action is passed to relogin.cgi, ThrowTemplateError() is called instead of ThrowCodeError() - Patch by Frédéric Buclin r=wicked a=justdave --- diff --git a/relogin.cgi b/relogin.cgi index 57e5e22aab..db63574809 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -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();