- From: Terje Bless <link@dev.w3.org>
- Date: Fri, 04 Feb 2005 19:25:22 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv11602/httpd/cgi-bin Modified Files: check Log Message: Fix unknown Content-Type detection which was borked by new parse mode code. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.382 retrieving revision 1.383 diff -u -d -r1.382 -r1.383 --- check 4 Feb 2005 19:00:59 -0000 1.382 +++ check 4 Feb 2005 19:25:20 -0000 1.383 @@ -1425,16 +1425,15 @@ } } - if ($mode =~ m(/)) { - my $type = $mode; # $mode is the MIME media type. - if ($type =~ m(text/css) and defined $url) { + if ($mode == MODE_TBD) { + if ($ct =~ m(text/css) and defined $url) { print redirect 'http://jigsaw.w3.org/css-validator/validator?uri=' . uri_escape $url; exit; } else { $File->{'Error Flagged'} = TRUE; - $File->{'Error Message'} = sprintf(<<" EOF", &ent($type)); + $File->{'Error Message'} = sprintf(<<" EOF", &ent($ct)); <div class="error"> <p> Sorry, I am unable to validate this document because its content type
Received on Friday, 4 February 2005 19:25:23 UTC