Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv19239/httpd/cgi-bin Modified Files: check Log Message: Avoid error log trashing from errors without a line number (such as some validator.nu info messages). Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.659 retrieving revision 1.660 diff -u -d -r1.659 -r1.660 --- check 26 Jun 2009 20:50:01 -0000 1.659 +++ check 26 Jun 2009 20:51:50 -0000 1.660 @@ -2095,7 +2095,8 @@ foreach my $err (@{$File->{Errors}}) { my $line; my $col = 0; - if($File->{Content}->[$err->{line}-1]) { # avoid truncating lines that do not exist + # avoid truncating lines that do not exist + if (defined($err->{line}) && $File->{Content}->[$err->{line}-1]) { if (defined($err->{char}) && $err->{char} =~ /^[0-9]+$/ ){ ($line, $col) = &truncate_line($File->{Content}->[$err->{line}-1], $err->{char}); $line = &mark_error($line, $col);Received on Friday, 26 June 2009 20:52:07 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 26 June 2009 20:52:08 GMT