W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2005

validator/httpd/cgi-bin check,1.431,1.432

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 29 Jul 2005 06:26:17 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1DyOK1-0000f7-Lh@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Differentiating between cases where a bogus URI and scheme is set,
and cases where nothing is set at all (also for upload, direct input).
Creating a different fatal error message for the latter cases.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.431
retrieving revision 1.432
diff -u -d -r1.431 -r1.432
--- check	27 Jul 2005 09:23:51 -0000	1.431
+++ check	29 Jul 2005 06:26:15 -0000	1.432
@@ -1015,8 +1015,15 @@
 
   unless ($ua->is_protocol_supported($uri)) {
     $File->{'Error Flagged'} = TRUE;
-    $File->{E}->param(fatal_uri_error  => TRUE);
-    $File->{E}->param(fatal_uri_scheme => $uri->scheme());
+    if (($uri->canonical() eq "1") ) 
+    #if uri param is empty (also for empty direct or upload), it's been set to TRUE in sub prepCGI()
+    {
+      $File->{E}->param(fatal_no_content  => TRUE);      
+    }
+    else { 
+      $File->{E}->param(fatal_uri_error  => TRUE);
+      $File->{E}->param(fatal_uri_scheme => $uri->scheme());
+    }
     return $File;
   }
 
Received on Friday, 29 July 2005 06:26:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:49 GMT