as - is allowed in tagnames, but misinterpreated by rlog..
if (! open($fh, "-|")) {
- close(STDERR); # rlog may complain; ignore.
- exec("rlog",@files);
+ open(STDERR, '>/dev/null'); # rlog may complain; ignore.
+ exec('rlog', @files);
}
}
else {
my $kidpid = open($fh, "-|");
if (! $kidpid) {
- close(STDERR); # rlog may complain; ignore.
- exec("rlog","-r",@files);
+ open(STDERR, '>/dev/null'); # rlog may complain; ignore.
+ exec('rlog', '-r', @files);
}
}
$state = "start";
@@ -2019,11 +2031,12 @@ sub doLog {
$backurl = $scriptname . "/" . urlencode($upwhere) . $query;
print &link($backicon, "$backurl#$filename"),
" Up to ", &clickablePath($upwhere, 1), "\n";
- print "Request diff between arbitrary revisions\n";
- print "
\n";
+ print <Request diff between arbitrary revisions
+
+EOF
if ($curbranch) {
- print "Default branch: ";
- print ($revsym{$curbranch} || $curbranch);
+ print "Default branch: ", ($revsym{$curbranch} || $curbranch);
}
else {
print "No default branch";
@@ -2317,7 +2330,7 @@ sub navigateHeader ($$$$$) {
$swhere = urlencode($filename) if ($swhere eq "");
print "<\!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
print "\n\n";
- print '';
+ print '';
print "\n$path$filename - $title - $rev\n";
print "\n";
print "";
@@ -2373,14 +2386,14 @@ sub readableTime ($$)
}
$i--;
$break = $breaks[$i];
- $retval = plural_write(int ($secs / $break), $desc{"$break"});
+ $retval = plural_write(int ($secs / $break), $desc{$break});
if ($long == 1 && $i > 0) {
my $rest = $secs % $break;
$i--;
$break = $breaks[$i];
my $resttime = plural_write(int ($rest / $break),
- $desc{"$break"});
+ $desc{$break});
if ($resttime) {
$retval = $retval . ", " . $resttime;
}
@@ -2413,7 +2426,7 @@ sub clickablePath($$) {
$retval = $retval . " / ";
$wherepath = $wherepath . '/' . $_;
my ($last) = "$wherepath/" eq "/$pathname"
- || "$wherepath" eq "/$pathname";
+ || $wherepath eq "/$pathname";
if ($clickLast || !$last) {
$retval = $retval . "\n";
foreach $k (@foo) {
print "\n";
}
print "\n";
@@ -2618,20 +2631,19 @@ sub urlencode {
sub http_header {
my $content_type = shift || "text/html";
- my $is_mod_perl = defined($ENV{'MOD_PERL'});
if (defined($moddate)) {
if ($is_mod_perl) {
Apache->request->header_out(Last_modified => scalar gmtime($moddate) . " GMT");
}
else {
- print "Last-Modified: " . scalar gmtime($moddate) . " GMT\n";
+ print "Last-Modified: " . scalar gmtime($moddate) . " GMT\r\n";
}
}
if ($is_mod_perl) {
Apache->request->content_type($content_type);
}
else {
- print "Content-type: $content_type\n";
+ print "Content-type: $content_type\r\n";
}
if ($allow_compress && $maycompress) {
my $fh = do {local(*FH);};
@@ -2642,9 +2654,9 @@ sub http_header {
Apache->request->send_http_header;
}
else {
- print "Content-encoding: x-gzip\n";
- print "Vary: Accept-Encoding\n"; #RFC 2068, 14.43
- print "\n"; # Close headers
+ print "Content-encoding: x-gzip\r\n";
+ print "Vary: Accept-Encoding\r\n"; #RFC 2068, 14.43
+ print "\r\n"; # Close headers
}
$| = 1; $| = 0; # Flush header output
select ($fh);
@@ -2655,7 +2667,7 @@ sub http_header {
Apache->request->send_http_header;
}
else {
- print "\n"; # Close headers
+ print "\r\n"; # Close headers
}
print "Unable to find gzip binary in the \$PATH to compress output
";
}
@@ -2665,21 +2677,21 @@ sub http_header {
Apache->request->send_http_header;
}
else {
- print "\n"; # Close headers
+ print "\r\n"; # Close headers
}
}
}
sub html_header($) {
my ($title) = @_;
- my $version = '$Revision: 3.2 $';
+ my $version = '$zRevision: 1.93 $ $Revision: 3.9 $';
http_header();
print <
$title
-
+
$body_tag
$logo $title