W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2011

link-checker commit: Pass correct base URI to parse_document() (part of #12720).

From: Mercurial notifier <nobody@w3.org>
Date: Mon, 23 May 2011 19:49:48 +0000
Message-Id: <E1QOb8O-00050b-KX@mcbain.w3.org>
To: link-checker updates <www-validator-cvs@w3.org>
changeset:   405:f3c48c82ec04
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Mon May 23 22:28:15 2011 +0300
files:       bin/checklink
description:
Pass correct base URI to parse_document() (part of #12720).


diff -r 2c8c10e21cf0 -r f3c48c82ec04 bin/checklink
--- a/bin/checklink	Sat May 14 12:53:39 2011 +0300
+++ b/bin/checklink	Mon May 23 22:28:15 2011 +0300
@@ -1180,8 +1180,8 @@
     $processed{$response->{absolute_uri}} = 1;
 
     # Parse the document
-    my $p = &parse_document($uri, $response->{absolute_uri},
-        $response, 1, ($depth != 0));
+    my $p =
+        &parse_document($uri, $response->base(), $response, 1, ($depth != 0));
     my $base = URI->new($p->{base});
 
     # Check anchors
Received on Monday, 23 May 2011 19:49:51 UTC

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