- From: Ville Skytta <ville@dev.w3.org>
- Date: Sat, 07 Aug 2004 13:41:36 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv28972
Modified Files:
Tag: validator-0_6_0-branch
check
Log Message:
Grok trailing whitespace and various linefeeds in read_cfg() (affects only
0_6_0-branch, should be fine in HEAD.)
http://lists.w3.org/Archives/Public/www-validator/2004Aug/0040.html
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.148
retrieving revision 1.305.2.149
diff -u -d -r1.305.2.148 -r1.305.2.149
--- check 21 Jul 2004 10:24:06 -0000 1.305.2.148
+++ check 7 Aug 2004 13:41:34 -0000 1.305.2.149
@@ -171,7 +171,7 @@
while (<$fh>) {
next if /^\s*$/;
next if /^\s*\#/;
- chomp;
+ s/\s+$//; # chomp() does not take care of CRLF's on *nix
my($k, $v) = split /\t+/, $_, 2;
$v = '' unless defined $v;
Received on Saturday, 7 August 2004 13:41:36 UTC