- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 01 May 2007 15:04:31 +0000
- To: www-validator-cvs@w3.org
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