- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 18 Feb 2006 20:06:43 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv22565/httpd/cgi-bin
Modified Files:
Tag: validator-0_7-branch
check
Log Message:
Avoid trashing error log when transcoding fails.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.432.2.9
retrieving revision 1.432.2.10
diff -u -d -r1.432.2.9 -r1.432.2.10
--- check 18 Feb 2006 20:05:28 -0000 1.432.2.9
+++ check 18 Feb 2006 20:06:41 -0000 1.432.2.10
@@ -2029,7 +2029,8 @@
}
}
my $remain = (length $in) - $short;
- $_ = $c->convert(substr($in,0,$short))
+ my $converted = $c->convert(substr($in, 0, $short));
+ $_ = defined($converted) ? $converted : ''
. "#### $remain byte(s) unconvertible ####";
}
}
Received on Saturday, 18 February 2006 20:06:46 UTC