summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-02-16 03:56:31 +0100
committerterry%mozilla.org <>2000-02-16 03:56:31 +0100
commitb018c7a450aef5c381b320bc6aa2a60d6fa1fdd1 (patch)
treeaeaa569aa2d3993bb441afd1c6346c1495d30a10 /CGI.pl
parenta1fe6beadefd384880d1b197cb3adf8b5fb6f282 (diff)
downloadbugzilla-b018c7a450aef5c381b320bc6aa2a60d6fa1fdd1.tar.gz
bugzilla-b018c7a450aef5c381b320bc6aa2a60d6fa1fdd1.tar.xz
Patches by Ken Jenks <kjenks@abiblion.com> and jug@tellux.de -- make the Javascript behave under IE5 and under Netscape 3.x
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index 39cdbca12..157f7a9ff 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -734,7 +734,7 @@ name=PleaseMailAPassword>
sub PutHeader {
- my ($title, $h1, $h2, $extra, $ignoreshutdown) = (@_);
+ my ($title, $h1, $h2, $extra, $ignoreshutdown, $jscript) = (@_);
if (!defined $h1) {
$h1 = $title;
@@ -745,9 +745,10 @@ sub PutHeader {
if (!defined $extra) {
$extra = "";
}
+ $jscript ||= "";
print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
- print Param("headerhtml") . "\n</HEAD>\n";
+ print Param("headerhtml") . "\n$jscript\n</HEAD>\n";
print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n";
print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\" $extra>\n";