diff options
author | ot <ot@localhost> | 2007-09-11 05:58:30 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-09-11 05:58:30 +0000 |
commit | ec37daedf90b01186e053d86174dac2a0af82ca5 (patch) | |
tree | b2cf8617954c425da6047b4d47069c038945c29e | |
parent | 581688b2b0615c59e0eaf95396907b3bb585eab1 (diff) | |
download | markup-validator-ec37daedf90b01186e053d86174dac2a0af82ca5.zip markup-validator-ec37daedf90b01186e053d86174dac2a0af82ca5.tar.gz markup-validator-ec37daedf90b01186e053d86174dac2a0af82ca5.tar.bz2 |
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
-rwxr-xr-x | httpd/cgi-bin/check | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d38202a..68cd0d7 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.564 2007-09-11 05:34:13 ot Exp $ +# $Id: check,v 1.565 2007-09-11 05:58:30 ot Exp $ # # Disable buffering on STDOUT! @@ -186,7 +186,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.564 $; + $VERSION = q$Revision: 1.565 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1436,6 +1436,9 @@ sub parse_content_type { '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); |