diff options
author | duerst <duerst@localhost> | 2002-08-30 07:35:02 +0000 |
---|---|---|
committer | duerst <duerst@localhost> | 2002-08-30 07:35:02 +0000 |
commit | b3626f070f2fcae2c7c4d81cee4a0671120daf2c (patch) | |
tree | 34799a793df78778c48834f2250fd35194584c12 | |
parent | 31c787f2304cc8c85db328cb5ccc9ae350ab4f04 (diff) | |
download | markup-validator-b3626f070f2fcae2c7c4d81cee4a0671120daf2c.zip markup-validator-b3626f070f2fcae2c7c4d81cee4a0671120daf2c.tar.gz markup-validator-b3626f070f2fcae2c7c4d81cee4a0671120daf2c.tar.bz2 |
fixed error logic for charset override
-rwxr-xr-x | httpd/cgi-bin/check | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index e8c6c7b..19b6580 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.220 2002-08-30 07:26:10 duerst Exp $ +# $Id: check,v 1.221 2002-08-30 07:35:02 duerst Exp $ # # Disable buffering on STDOUT! @@ -95,7 +95,7 @@ BEGIN { # # Strings - $VERSION = q$Revision: 1.220 $; + $VERSION = q$Revision: 1.221 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; @@ -151,7 +151,7 @@ $File->{'Header'} = &prepSSI({ }); $File->{'Footer'} = &prepSSI({ File => $CFG->{'Footer'}, - Date => q$Date: 2002-08-30 07:26:10 $, + Date => q$Date: 2002-08-30 07:35:02 $, }); # @@ -2011,7 +2011,8 @@ sub charset_conflicts { # # warn about charset override - if (&conflict($File->{Charset}->{Override}, $File->{Charset}->{Use})) { + if ($File->{Charset}->{Override} && + &conflict($File->{Charset}->{Override}, $File->{Charset}->{Use})) { &add_warning($File, <<" .EOF."); <strong>Character Encoding Override in effect!</strong> The detected character encoding, |