Bug 105960 - xml.cgi has wrong content type, and should be standalone

r=caillon x2


git-svn-id: svn://10.0.0.236/trunk@120095 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bbaetz%student.usyd.edu.au
2002-04-27 06:25:41 +00:00
parent d384169348
commit c40b378bff
3 changed files with 3 additions and 3 deletions

View File

@@ -325,7 +325,7 @@ sub XML_Header {
my ($urlbase, $version, $maintainer, $exporter) = (@_);
my $xml;
$xml = "<?xml version=\"1.0\" standalone=\"no\"?>\n";
$xml = "<?xml version=\"1.0\" standalone=\"yes\"?>\n";
$xml .= "<!DOCTYPE bugzilla SYSTEM \"$urlbase";
if (! ($urlbase =~ /.+\/$/)) {
$xml .= "/";

View File

@@ -325,7 +325,7 @@ sub XML_Header {
my ($urlbase, $version, $maintainer, $exporter) = (@_);
my $xml;
$xml = "<?xml version=\"1.0\" standalone=\"no\"?>\n";
$xml = "<?xml version=\"1.0\" standalone=\"yes\"?>\n";
$xml .= "<!DOCTYPE bugzilla SYSTEM \"$urlbase";
if (! ($urlbase =~ /.+\/$/)) {
$xml .= "/";

View File

@@ -45,7 +45,7 @@ my $exporter = $::COOKIE{"Bugzilla_login"} || undef;
my @ids = split (/[, ]+/, $::FORM{'id'});
print "Content-type: text/plain\n\n";
print "Content-type: text/xml\n\n";
print Bug::XML_Header(Param("urlbase"), $::param{'version'},
Param("maintainer"), $exporter);
foreach my $id (@ids) {