Skip Menu |

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

Report information
The Basics
Id: 37545
Status: resolved
Priority: 0/
Queue: XML-SAX

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: EntityValue ! versus =~
Date: Wed, 09 Jul 2008 08:01:39 +1000
To: bug-xml-sax [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
In xml-sax 0.16 PurePerl/DTDDecls.pm EntityValue() function I noticed a line if (!$data =~ /^"/) { I wonder if that might be always false due to ! having higher precedence than =~. (I came across it trying some perlcritic to detect that sort of doubtful "!". I don't know if it hurts anything in practice.)
Thanks for your report. Your analysis was correct and the condition was always being treated as false. The impact being that only double quotes would be valid for quoting strings in DTD declarations. I have fixed the issue in the recent 0.96 release of XML::SAX.