validator/httpd/cgi-bin check,1.621,1.622

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv5569/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Don't pass empty parser parameter to validator.nu.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.621
retrieving revision 1.622
diff -u -d -r1.621 -r1.622
--- check	4 Jan 2009 12:11:07 -0000	1.621
+++ check	4 Jan 2009 12:13:26 -0000	1.622
@@ -810,10 +810,6 @@
 sub html5_validate (\$) {
   my $File = shift;
   my $ua = new W3C::Validator::UserAgent ($CFG, $File);
-  my $html5_parser = "";
-  # if ($File->{Mode} =~ /XML/) {
-  #   $html5_parser = "xml";
-  # }
 
   $File->{ParserName} = "validator.nu";
   $File->{ParserOpts} = "";
@@ -821,7 +817,7 @@
   use HTTP::Request::Common;
 
   my $res = $ua->request(POST "$CFG->{External}->{HTML5}", Content_Type => 'form-data',
-  Content  => [out => "xml", parser=>$html5_parser, content => Encode::encode_utf8(join "\n", @{$File->{Content}})]);
+  Content  => [out => "xml", content => Encode::encode_utf8(join "\n", @{$File->{Content}})]);
   if (! $res->is_success()) {
     $File->{'Error Flagged'} = TRUE;
     $File->{Templates}->{Error}->param(fatal_no_checker  => TRUE);

Received on Sunday, 4 January 2009 12:13:37 UTC