Skip Menu |

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

Report information
The Basics
Id: 21497
Status: resolved
Priority: 0/
Queue: XML-Parser

People
Owner: Nobody in particular
Requestors: vlad.romascanu [...] ericsson.com
Cc:
AdminCc:

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



Subject: XML::Parser::Expat::xml_escape only escapes first occurence of some chars
Date: Thu, 14 Sep 2006 22:29:17 +0200
To: <bug-XML-Parser [...] rt.cpan.org>
From: "Vlad ROMASCANU" <vlad.romascanu [...] ericsson.com>
Hello, This applies to XML-Parser-2.34 and earlier. XML::Parser::Expat::xml_escape only escapes the first quote (be it double or simple). Shouldn't "/g;" be added to s/// in Expat.pm? elsif ($_ eq '"') { $text =~ s/\"/\&quot;/g; } elsif ($_ eq "'") { $text =~ s/\'/\&apos;/g; } Cheers, V.
Ticket migrated to github as https://github.com/toddr/XML-Parser/issues/41