- From: Terje Bless <link@dev.w3.org>
- Date: Fri, 04 Feb 2005 21:12:53 +0000
- To: www-validator-cvs@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 UTC