validator/httpd/cgi-bin check,1.770,1.771

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

Modified Files:
	check 
Log Message:
Add warning for missing Content-Type.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.770
retrieving revision 1.771
diff -u -d -r1.770 -r1.771
--- check	4 Mar 2010 16:09:52 -0000	1.770
+++ check	6 Mar 2010 11:00:48 -0000	1.771
@@ -414,6 +414,11 @@
 #### Output validation results. ###############################################
 ###############################################################################
 
+if (!$File->{ContentType} && !$File->{'Direct Input'} && !$File->{'Is Upload'})
+{
+    &add_warning('W08', {});
+}
+
 $File = find_encodings($File);
 
 #

Received on Saturday, 6 March 2010 11:00:52 UTC