link-checker commit: Signal explicit EOF to HTML::Parser in parse_document().

changeset:   175:0bd3eaa18d4f
user:        ville
date:        Sun Jul 29 16:51:00 2007 +0000
files:       bin/checklink
description:
Signal explicit EOF to HTML::Parser in parse_document().


diff -r cce894fac135 -r 0bd3eaa18d4f bin/checklink
--- a/bin/checklink	Sun Jul 29 16:49:00 2007 +0000
+++ b/bin/checklink	Sun Jul 29 16:51:00 2007 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2007 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.59 2007-07-29 16:49:00 ville Exp $
+# $Id: checklink,v 4.60 2007-07-29 16:51:00 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -192,7 +192,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2007 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.59 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.60 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1264,7 +1264,7 @@
   # for right now.
   $$docref =~ s/\<\?(xml:stylesheet.*?)\?\>/\<$1\>/ unless $p->{only_anchors};
 
-  $p->parse($$docref);
+  $p->parse($$docref)->eof();
   $response->content("");
 
   if (! $Opts{Summary_Only}) {

Received on Thursday, 5 August 2010 14:47:20 UTC