summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2008-08-22 11:36:29 +0000
committerot <ot@localhost>2008-08-22 11:36:29 +0000
commit2ec8c9d4664b19fee555b639495353ff1090e07d (patch)
tree88c6084e07b0608608e959ba38476bf4634dca44
parentb402f9852a245a87a666f395ba7aec3861133895 (diff)
downloadmarkup-validator-2ec8c9d4664b19fee555b639495353ff1090e07d.zip
markup-validator-2ec8c9d4664b19fee555b639495353ff1090e07d.tar.gz
markup-validator-2ec8c9d4664b19fee555b639495353ff1090e07d.tar.bz2
HTTP::Message content must be bytes - doesn't like utf8 strings it seems
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index edebc95..89f3d9c 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.600 2008-08-20 20:34:10 ot Exp $
+# $Id: check,v 1.601 2008-08-22 11:36:29 ot Exp $
#
# Disable buffering on STDOUT!
@@ -191,7 +191,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.600 $;
+ $VERSION = q$Revision: 1.601 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -844,7 +844,7 @@ sub html5_validate (\$) {
$ua->default_header(Cache_control=> "max-age=0");
my $res = $ua->request(POST "$CFG->{External}->{HTML5}", Content_Type => 'form-data',
- Content => [out => "xml", parser=>$html5_parser, content => join "\n", @{$File->{Content}}]);
+ Content => [out => "xml", parser=>$html5_parser, content => Encode::encode_utf8(join "\n", @{$File->{Content}})]);
if (! $res->is_success()) {
$File->{'Error Flagged'} = TRUE;
$File->{Templates}->{Error}->param(fatal_no_checker => TRUE);