Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv14407/httpd/cgi-bin Modified Files: check Log Message: Escape SPO's croaking on some rare error message formats. As reported in http://lists.w3.org/Archives/Public/www-validator/2007Apr/0118.html and filed in http://www.w3.org/Bugs/Public/show_bug.cgi?id=4516 Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.514 retrieving revision 1.515 diff -u -d -r1.514 -r1.515 --- check 30 Apr 2007 16:09:09 -0000 1.514 +++ check 1 May 2007 15:04:29 -0000 1.515 @@ -2325,7 +2325,14 @@ { my $self = shift; my $error = shift; - my $mess = $self->{_parser}->split_message($error); + my $mess; + eval { + $mess = $self->{_parser}->split_message($error); + }; + if ($@) { + # this is a message that S:P:O could not handle, we skip its croaking + return; + } my $File = $self->{_file}; # TODO: this does not filter out errors in DTDs.Received on Tuesday, 1 May 2007 15:04:33 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:22 UTC