diff options
author | ville <ville@localhost> | 2002-09-14 10:50:50 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2002-09-14 10:50:50 +0000 |
commit | 4c1ed57a0062e2e657d229d5c4622ab8c354c210 (patch) | |
tree | 26de2357ae26fd2918741b13e2b34a973a3567c4 | |
parent | d256ece672be2f38ac753a83e04369b1e2184ad3 (diff) | |
download | markup-validator-4c1ed57a0062e2e657d229d5c4622ab8c354c210.zip markup-validator-4c1ed57a0062e2e657d229d5c4622ab8c354c210.tar.gz markup-validator-4c1ed57a0062e2e657d229d5c4622ab8c354c210.tar.bz2 |
Eliminate a couple of warnings.
-rwxr-xr-x | httpd/cgi-bin/check | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d5a19b0..b11cd25 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -9,7 +9,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.231 2002-09-12 20:46:42 ville Exp $ +# $Id: check,v 1.232 2002-09-14 10:50:50 ville Exp $ # # Disable buffering on STDOUT! @@ -95,7 +95,7 @@ BEGIN { # # Strings - $VERSION = q$Revision: 1.231 $; + $VERSION = q$Revision: 1.232 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; @@ -151,7 +151,7 @@ $File->{'Header'} = &prepSSI({ }); $File->{'Footer'} = &prepSSI({ File => $CFG->{'Footer'}, - Date => q$Date: 2002-09-12 20:46:42 $, + Date => q$Date: 2002-09-14 10:50:50 $, }); # @@ -1924,10 +1924,11 @@ sub prepCGI { } # Supersede URI with an uploaded fragment. - if ($q->param('fragment')) {$q->param('uri', 'upload://Form Submission')}; + $q->param('uri', 'upload://Form Submission') if $q->param('fragment'); # Munge the URI to include commonly omitted prefix. - $q->param('uri', 'http://' . $q->param('uri')) if $q->param('uri') =~ m(^www)i; + my $u = $q->param('uri'); + $q->param('uri', "http://$u") if $u && $u =~ m(^www)i; # # Flag an error if we didn't get a file to validate. @@ -1969,7 +1970,7 @@ sub prepSSI { # Output errors for a rejected URI. sub uri_rejected { my $scheme = shift || 'undefined'; - unless ($scheme == 'undefined') { + unless ($scheme eq 'undefined') { $scheme = $scheme->scheme(); } |