- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 14 Dec 2009 22:09:20 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv14205/httpd/cgi-bin Modified Files: check Log Message: Pass document base URIs to XML::LibXML. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.754 retrieving revision 1.755 diff -u -d -r1.754 -r1.755 --- check 14 Dec 2009 22:03:54 -0000 1.754 +++ check 14 Dec 2009 22:09:17 -0000 1.755 @@ -609,6 +609,8 @@ $xmlparser->line_numbers(1); $xmlparser->validation(0); $xmlparser->load_ext_dtd(0); + $xmlparser->base_uri($File->{URI}) + unless ($File->{'Direct Input'} || $File->{'Is Upload'}); # [NOT] loading the XML catalog for entities resolution as it seems to # cause a lot of unnecessary DTD/entities fetching @@ -1088,6 +1090,8 @@ # major unix distributions still shipping with libxml2 2.6.16… 4 years # after its release my $xml_reader = XML::LibXML->new(); + $xml_reader->base_uri($res->base()); + my $xmlDOM; eval { $xmlDOM = $xml_reader->parse_string($content); }; if ($@) { @@ -1260,6 +1264,8 @@ # major unix distributions still shipping with libxml2 2.6.16… 4 years # after its release my $xml_reader = XML::LibXML->new(); + $xml_reader->base_uri($res->base()); + my $xmlDOM; eval { $xmlDOM = $xml_reader->parse_string($content); }; if ($@) {
Received on Monday, 14 December 2009 22:09:28 UTC