- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 14 Aug 2008 18:04:36 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv12135
Modified Files:
check
Log Message:
mistake in equal sign testing (== instead of eq for non-numerals) floods error console with warnings - bug report and patch courtesy of Moto Ishizawa
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.591
retrieving revision 1.592
diff -u -d -r1.591 -r1.592
--- check 14 Jul 2008 03:15:25 -0000 1.591
+++ check 14 Aug 2008 18:04:34 -0000 1.592
@@ -624,14 +624,14 @@
# Always transcode, even if the content claims to be UTF-8
$File = transcode($File);
-if (($File->{ContentType} == "text/html") and ($File->{Charset}->{Default}) and $File->{'Error Flagged'}) {
+if (($File->{ContentType} eq "text/html") and ($File->{Charset}->{Default}) and $File->{'Error Flagged'}) {
$File->{'Error Flagged'} = FALSE; # reset
# we try again, this time with win-1252
$File->{Charset}->{Use} = 'windows-1252';
&add_warning('W04', {W04_charset => "windows-1252", W04_also_tried=> "UTF-8"});
$File = transcode($File);
}
-if (($File->{ContentType} == "text/html") and ($File->{Charset}->{Default}) and $File->{'Error Flagged'}) {
+if (($File->{ContentType} eq "text/html") and ($File->{Charset}->{Default}) and $File->{'Error Flagged'}) {
$File->{'Error Flagged'} = FALSE; # reset
# we try again, this time with latin1...
$File->{Charset}->{Use} = 'iso-8859-1';
Received on Thursday, 14 August 2008 18:05:10 UTC