W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Avoid feeding the whole response (including HTTP headers) to HTML::Parser.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:01 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1in-0005gk-Dr@blinky.w3.org>
changeset:   102:f3ebeb209250
user:        ville
date:        Sun Oct 10 21:00:22 2004 +0000
files:       bin/checklink
description:
Avoid feeding the whole response (including HTTP headers) to HTML::Parser.
Fixes http://www.w3.org/Bugs/Public/show_bug.cgi?id=889


diff -r a1d953af0110 -r f3ebeb209250 bin/checklink
--- a/bin/checklink	Fri Aug 27 04:58:56 2004 +0000
+++ b/bin/checklink	Sun Oct 10 21:00:22 2004 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2004 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.6 2004-08-27 04:58:56 duerst Exp $
+# $Id: checklink,v 4.7 2004-10-10 21:00:22 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -112,7 +112,7 @@
   $PACKAGE       = 'W3C Link Checker';
   $PROGRAM       = 'W3C-checklink';
   $VERSION       = '4.0';
-  my ($cvsver)   = q$Revision: 4.6 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver)   = q$Revision: 4.7 $ =~ /(\d+[\d\.]*\.\d+)/;
   $REVISION      = sprintf('version %s [%s] (c) 1999-2004 W3C',
                            $VERSION, $cvsver);
   $AGENT         = sprintf('%s/%s [%s] %s',
@@ -1360,7 +1360,7 @@
     }
     # Do it then
     $p = &parse_document($uri, $response->base(),
-                         $response->as_string(), 0, $want_links);
+                         $response->content(), 0, $want_links);
   } else {
     # We already had the information
     $p->{Anchors} = $results{$uri}{parsing}{Anchors};
Received on Thursday, 5 August 2010 14:47:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC