validator/httpd/cgi-bin check,1.564,1.565

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

Modified Files:
	check 
Log Message:
Now that we have a decent XML processor, we can accept documents sent with a
media type which is unknown, if the media type follows the convention 
"application/*+xml" (as a subset of the convention defined in RFC 3023 sec 7)
we'll treat it as incoming XML.

This should also fix http://www.w3.org/Bugs/Public/show_bug.cgi?id=4926


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.564
retrieving revision 1.565
diff -u -d -r1.564 -r1.565
--- check	11 Sep 2007 05:34:13 -0000	1.564
+++ check	11 Sep 2007 05:58:30 -0000	1.565
@@ -1436,6 +1436,9 @@
         'http://validator.w3.org/feed/check.cgi?url='
           . uri_escape $url;
       exit;
+    } elsif ($ct =~ m(application/.+\+xml)) {
+      # unknown media types which should be XML - we give these a try
+      $mode = "XML";
     } else {
       $File->{'Error Flagged'} = TRUE;
       $File->{Templates}->{Error}->param(fatal_mime_error => TRUE);

Received on Tuesday, 11 September 2007 05:58:37 UTC