From 533a2f4419ec8cc635642143cfbadf855767a9d4 Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Wed, 24 Mar 2004 21:08:09 +0000 Subject: [PATCH] A few fixes: - Need to reset the section marker for each new module. - Should escape HTML in the log messges too :-) --- cgi-bin/cvslog.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.44.0