print Bugzilla->cgi->header(-status => 503,
-retry_after => SHUTDOWNHTML_RETRY_AFTER);
}
- my $t_output;
- $template->process("global/message.$extension.tmpl", $vars, \$t_output)
+ $template->process("global/message.$extension.tmpl", $vars)
|| ThrowTemplateError($template->error);
- say $t_output;
exit;
}
}
if ($cookie) {
push(@login_cookies, $cookie->value);
}
- else {
- push(@login_cookies, $cgi->cookie("Bugzilla_logincookie"));
+ elsif ($cookie = $cgi->cookie('Bugzilla_logincookie')) {
+ push(@login_cookies, $cookie);
}
# If we are a webservice using a token instead of cookie
push(@login_cookies, $login_token->{'login_token'});
}
- return if !@login_cookies;
+ # Make sure that @login_cookies is not empty to not break SQL statements.
+ push(@login_cookies, '') unless @login_cookies;
# These queries use both the cookie ID and the user ID as keys. Even
# though we know the userid must match, we still check it in the SQL