W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2005

validator/httpd/cgi-bin check,1.387,1.388

From: Terje Bless <link@dev.w3.org>
Date: Fri, 04 Feb 2005 21:12:53 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1CxAl3-0006FI-Tq@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Un-bork unknown media type detection.


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.387
retrieving revision 1.388
diff -u -d -r1.387 -r1.388
--- check	4 Feb 2005 21:05:54 -0000	1.387
+++ check	4 Feb 2005 21:12:51 -0000	1.388
@@ -1416,7 +1416,7 @@
 
   my($ct, @param) = split /\s*;\s*/, lc $Content_Type;
 
-  $mode = $CFG->{MIME}->{$ct} || MODE_TBD;
+  $mode = $CFG->{MIME}->{$ct} || $ct;
 
   foreach my $param (@param) {
     my($p, $v) = split /\s*=\s*/, $param;
@@ -1427,7 +1427,7 @@
     }
   }
 
-  if ($mode == MODE_TBD) {
+  if ($mode =~ m(/)) { # a "/" means it's unknown or we'd have a mode here.
     if ($ct =~ m(text/css) and defined $url) {
       print redirect
         'http://jigsaw.w3.org/css-validator/validator?uri='
Received on Friday, 4 February 2005 21:12:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:48 GMT