- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 28 Jun 2007 10:03:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv27284/httpd/cgi-bin Modified Files: check Log Message: better matching of xml declarations with line breaks Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.531 retrieving revision 1.532 diff -u -d -r1.531 -r1.532 --- check 28 Jun 2007 09:55:48 -0000 1.531 +++ check 28 Jun 2007 10:03:12 -0000 1.532 @@ -1923,7 +1923,7 @@ my $parseModeFromDoctype = $CFG->{Types}->{$fpi}->{'Parse Mode'} || 'TBD'; my $parseModeFromMimeType = $File->{Mode}; - my $begincontent = join "",@{$File->{Content}}[0,9]; # for the sake of xml decl detection, + my $begincontent = join "\x20",@{$File->{Content}}; # for the sake of xml decl detection, # the 10 first lines should be safe my $parseModeFromXMLDecl = ( $begincontent @@ -1963,7 +1963,7 @@ $File->{ModeChoice} = 'Fallback'; # and send warning about the fallback &add_warning('W06', { - W06_mime => $File->{ContentType}, + W06_mime => $begincontent, #$File->{ContentType}, w06_doctype => $File->{Version} }); return;
Received on Thursday, 28 June 2007 10:03:29 UTC