diff options
author | bbaetz%acm.org <> | 2003-05-05 08:15:19 +0000 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-05-05 08:15:19 +0000 |
commit | 9488a8906592564ec2e7601041f3ea5484cde3cc (patch) | |
tree | b9308d1a3dcf639d1e561ede1186ff58afc01834 /query.cgi | |
parent | c000c0a480f2cb73f2b0b89550bbd8e496b73c9d (diff) | |
download | bugs-9488a8906592564ec2e7601041f3ea5484cde3cc.tar bugs-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.gz bugs-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.bz2 bugs-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.xz bugs-9488a8906592564ec2e7601041f3ea5484cde3cc.zip |
Bug 201816 - use CGI.pm for header output
r=joel, a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -50,6 +50,9 @@ use vars qw( ); ConnectToDatabase(); + +my $cgi = Bugzilla->cgi; + my $userid = 0; if (defined $::FORM{"GoAheadAndLogIn"}) { # We got here from a login page, probably from relogin.cgi. We better @@ -87,8 +90,8 @@ if ($userid) { "($userid, $qname, " . SqlQuote($value) . ")"); } } - print "Set-Cookie: $cookiename= ; path=" . Param("cookiepath") . - "; expires=Sun, 30-Jun-1980 00:00:00 GMT\n"; + $cgi->send_cookie(-name => $cookiename, + -expires => "Fri, 01-Jan-2038 00:00:00 GMT"); } } } @@ -398,6 +401,8 @@ $vars->{'format'} = $::FORM{'format'}; my $format = GetFormat("search/search", $::FORM{'query_format'} || $::FORM{'format'}, $::FORM{'ctype'}); -print "Content-Type: $format->{'ctype'}\n\n"; + +print $cgi->header($format->{'ctype'}); + $template->process($format->{'template'}, $vars) || ThrowTemplateError($template->error()); |