зеркало из https://github.com/mozilla/gecko-dev.git
Bug 105960 - xml.cgi has wrong content type, and should be standalone
r=caillon x2
This commit is contained in:
Родитель
ac23401c80
Коммит
0af30f9d57
|
@ -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 .= "/";
|
||||
|
|
|
@ -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 .= "/";
|
||||
|
|
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче