validator/httpd/cgi-bin check,1.432.2.11,1.432.2.12

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

Modified Files:
      Tag: validator-0_7-branch
	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.432.2.11
retrieving revision 1.432.2.12
diff -u -d -r1.432.2.11 -r1.432.2.12
--- check	26 Feb 2006 11:35:30 -0000	1.432.2.11
+++ check	5 Aug 2006 09:43:15 -0000	1.432.2.12
@@ -1136,6 +1136,7 @@
   my $mode         = '';
 
   my ($ct, @param) = split /\s*;\s*/, lc $Content_Type;
+  $ct =~ s/^\s+//; $ct =~ s/\s+$//;
 
   $mode = $CFG->{MIME}->{$ct} || $ct;
 

Received on Saturday, 5 August 2006 09:43:24 UTC