- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 29 Jul 2005 06:26:17 +0000
- To: www-validator-cvs@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 UTC