summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorendico%mozilla.org <>2000-05-20 17:07:19 +0200
committerendico%mozilla.org <>2000-05-20 17:07:19 +0200
commit0d0eff43997034887c12d913249263932811491a (patch)
tree59feb69526609b89da72402d176762f036d1af41
parentf910d39fb6e0ed2746ad69e0e9c3b68e1e7f7e0b (diff)
downloadbugzilla-0d0eff43997034887c12d913249263932811491a.tar.gz
bugzilla-0d0eff43997034887c12d913249263932811491a.tar.xz
fix url of dtd
-rwxr-xr-xexport_bug.cgi11
1 files changed, 8 insertions, 3 deletions
diff --git a/export_bug.cgi b/export_bug.cgi
index bc086a616..d7421c321 100755
--- a/export_bug.cgi
+++ b/export_bug.cgi
@@ -25,7 +25,7 @@ use diagnostics;
use strict;
use RelationSet;
use XML::Dumper;
-#use vars %::COOKIE;
+use vars %::COOKIE;
require "CGI.pl";
#$::lockcount = 0;
@@ -277,12 +277,17 @@ sub Unlock {
}
my $xml;
+my $urlbase = Param("urlbase");
$xml = "<?xml version=\"1.0\" standalone=\"no\"?>\n";
-$xml .= "<!DOCTYPE bugzilla SYSTEM \"" . Param("urlbase") . "\">\n";
+$xml .= "<!DOCTYPE bugzilla SYSTEM \"$urlbase";
+if (! ($urlbase =~ /.+\/$/)) {
+ $xml .= "/";
+}
+$xml .= "bugzilla.dtd\">\n";
$xml .= "<bugzilla";
$xml .= " exporter=\"$exporter\"";
$xml .= " version=\"$::param{'version'}\"";
-$xml .= " urlbase=\"" . Param("urlbase") . "\"";
+$xml .= " urlbase=\"$urlbase\"";
$xml .= " maintainer=\"" . Param("maintainer") ."\">\n";
$xml .= "<bug>\n";