validator/httpd/cgi-bin check,1.432.2.4,1.432.2.5

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

Modified Files:
      Tag: validator-0_7-branch
	check 
Log Message:
muting warning for another case of charset conflict in direct input (http://www.w3.org/Bugs/Public/show_bug.cgi?id=1833)

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.432.2.4
retrieving revision 1.432.2.5
diff -u -d -r1.432.2.4 -r1.432.2.5
--- check	21 Sep 2005 08:49:03 -0000	1.432.2.4
+++ check	13 Oct 2005 05:35:17 -0000	1.432.2.5
@@ -1944,7 +1944,7 @@
   #
   # Add a warning if there was charset info conflict (HTTP header,
   # XML declaration, or <meta> element).
-  if (&conflict($File->{Charset}->{HTTP}, $File->{Charset}->{XML})) {
+  if (&conflict($File->{Charset}->{HTTP}, $File->{Charset}->{XML}) and not ($File->{'Direct Input'})) {
     &add_warning('W18', {
       W18_http => $cs_http,
       W18_xml  => $cs_xml,

Received on Thursday, 13 October 2005 05:35:25 UTC