- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 16 Mar 2007 00:34:20 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv13319
Modified Files:
check
Log Message:
tentative fix for http://www.w3.org/Bugs/Public/show_bug.cgi?id=3992
(parser tripping on DOS newlines)
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -d -r1.479 -r1.480
--- check 15 Mar 2007 06:30:14 -0000 1.479
+++ check 16 Mar 2007 00:34:17 -0000 1.480
@@ -1862,6 +1862,11 @@
# @@FIXME is this what we want?
$output =~ s/\015?\012/\n/g;
+
+ # make sure we deal only with unix newlines
+ # tentative fix for http://www.w3.org/Bugs/Public/show_bug.cgi?id=3992
+ $output =~ s/(\r\n|\n|\r)/\n/g;
+
$File->{Content} = [split/\n/, $output];
return $File;
Received on Friday, 16 March 2007 00:34:24 UTC