W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2007

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

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 11 Sep 2007 05:58:33 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IUyld-0000GB-Cg@lionel-hutz.w3.org>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:08:28 UTC