From: Tim Bishop Date: Wed, 24 Mar 2004 21:08:09 +0000 (+0000) Subject: A few fixes: X-Git-Url: http://git.i-scream.org/?a=commitdiff_plain;h=533a2f4419ec8cc635642143cfbadf855767a9d4;p=www.i-scream.org.git A few fixes: - Need to reset the section marker for each new module. - Should escape HTML in the log messges too :-) --- diff --git a/cgi-bin/cvslog.cgi b/cgi-bin/cvslog.cgi index 3c8cf71..004161e 100755 --- a/cgi-bin/cvslog.cgi +++ b/cgi-bin/cvslog.cgi @@ -58,7 +58,6 @@ my ($footer) = "$incdir/footer.inc"; my ($menu) = "$incdir/menu.inc" ; # Section markers -my ($sec) = 0; my ($secwho) = 1; my ($secfiles) = 2; my ($seclog) = 3; @@ -106,6 +105,7 @@ my(@modules) = split (/\s+/, $modulelist); foreach my $module (@modules) { my($firstentry) = 1; + my($sec) = 0; print <<"END";

@@ -135,7 +135,7 @@ END @log = &trim_array(@log); foreach my $logline (@log) { $logline =~ s/^\t//; - print "$logline\n"; + print escapeHTML("$logline\n"); } @log = (); print <<"END"; @@ -251,7 +251,7 @@ END @log = &trim_array(@log); foreach my $logline (@log) { $logline =~ s/^\t//; - print "$logline\n"; + print escapeHTML("$logline\n"); } @log = (); print <<"END";