summaryrefslogtreecommitdiffstats
path: root/xml.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-06-17 18:38:56 +0200
committerbbaetz%student.usyd.edu.au <>2002-06-17 18:38:56 +0200
commit70eb21091d161fe0325000af992f6f398683c92a (patch)
treef76e853435c05bbb3d88b56c174faa54ae7828f6 /xml.cgi
parent89aebbf6bf7cf73f9ae51d295aee68205c68e731 (diff)
downloadbugzilla-70eb21091d161fe0325000af992f6f398683c92a.tar.gz
bugzilla-70eb21091d161fe0325000af992f6f398683c92a.tar.xz
Bug 151053, ConnectToDatabase/quietly_check_login sometimes not called
early enough r=mattyt, jouni
Diffstat (limited to 'xml.cgi')
-rwxr-xr-xxml.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/xml.cgi b/xml.cgi
index f35a13cd9..8a0bbf1e4 100755
--- a/xml.cgi
+++ b/xml.cgi
@@ -32,6 +32,9 @@ require "CGI.pl";
use vars qw($template $vars);
+ConnectToDatabase();
+quietly_check_login();
+
if (!defined $::FORM{'id'} || !$::FORM{'id'}) {
print "Content-Type: text/html\n\n";
$template->process("bug/choose-xml.html.tmpl", $vars)
@@ -39,8 +42,6 @@ if (!defined $::FORM{'id'} || !$::FORM{'id'}) {
exit;
}
-quietly_check_login();
-
my $exporter = $::COOKIE{"Bugzilla_login"} || undef;
my @ids = split (/[, ]+/, $::FORM{'id'});