summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-11-22 04:17:12 +0100
committerlpsolit%gmail.com <>2005-11-22 04:17:12 +0100
commit0ed3528c248cee98c70a20430062e3f5898a2758 (patch)
tree0eaf4f50cf90d30496f6d4089dbcab02c0243a38
parent7a3c2eb8b860cf888bd379fd3c997e8fdacbd8e3 (diff)
downloadbugzilla-0ed3528c248cee98c70a20430062e3f5898a2758.tar.gz
bugzilla-0ed3528c248cee98c70a20430062e3f5898a2758.tar.xz
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
-rwxr-xr-xrelogin.cgi5
1 files changed, 5 insertions, 0 deletions
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();