From 0ed3528c248cee98c70a20430062e3f5898a2758 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 22 Nov 2005 03:17:12 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relogin.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'relogin.cgi') diff --git a/relogin.cgi b/relogin.cgi index 57e5e22aa..db6357480 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(); -- cgit v1.2.3-24-g4f1b