Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 95782
Status: new
Priority: 0/
Queue: XML-LibXML

Owner: Nobody in particular
Requestors: bitcard.10.drkshadow [...]

Bug Information
Severity: (no value)
Broken in:
  • 1.90
  • 2.0014
Fixed in: (no value)

Subject: .dtd:1: parser error : Content error in the external subset
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.18-6201-1400515306-1256.0-0-0 [...]>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1400515306-6201-3"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 904
Download (untitled) / with headers
text/plain 904b
When parsing an NZB file, the referenced DTD is loaded despite being told to not load them: my $xml = XML::LibXML->new(); $xml->load_ext_dtd(0); $xml->load_xml(IO => \*FILE); ========= parser error : Content error in the external subset <html> ^ The error is the same with load_ext_dtd(1): my $xml = XML::LibXML->new(); $xml->load_ext_dtd(1); $xml->load_xml(IO => \*SUBJECTFILE); ========= parser error : Content error in the external subset <html> ^ The problem goes away, however, if you use an undocumented libxml feature: my $xml = XML::LibXML->new(); $xml->load_xml(IO => \*SUBJECTFILE, load_ext_dtd => 0); I say undocumented, as the documentation states, "LibXML options are global [...] They can either be set using $parser->option(...), or XML::LibXML->option(...)," and "$parser->load_ext_dtd(1);".
Subject: spam-test.nzb
MIME-Version: 1.0
Content-Type: application/x-nzb; name="spam-test.nzb"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="spam-test.nzb"
Content-Transfer-Encoding: base64
Content-Length: 284
Download spam-test.nzb
application/x-nzb 284b

Message body not shown because it is not plain text.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to