W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2006

validator/httpd/cgi-bin check,1.459,1.460

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 05 Aug 2006 09:42:23 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1G9Ifn-0001z6-Ve@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv7546/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Be more lenient about whitespace and linefeeds in Content-Type (#3574).

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.459
retrieving revision 1.460
diff -u -d -r1.459 -r1.460
--- check	1 Aug 2006 06:10:52 -0000	1.459
+++ check	5 Aug 2006 09:42:21 -0000	1.460
@@ -1051,8 +1051,7 @@
   my $url          = shift;
   my $charset      = '';
 
-  # @@FIXME @param now unused
-  my ($ct, @param) = split /\s*;\s*/, lc $Content_Type;
+  my ($ct) = lc($Content_Type) =~ /^\s*([^\s;]*)/g;
 
   my $mode = $CFG->{MIME}->{$ct} || $ct;
 
Received on Saturday, 5 August 2006 09:42:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:25 UTC