Skip Menu |

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

Report information
The Basics
Id: 22291
Status: resolved
Priority: 0/
Queue: POE-Filter-XML

People
Owner: nperez [...] cpan.org
Requestors: ewaters [...] uarc.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.1
  • 0.1.1
  • 0.2.0
  • 0.2.1
  • 0.21
  • 0.22
  • 0.23
  • 0.24
  • 0.27
  • 0.28
  • 0.29
Fixed in: 0.30



Subject: No XML encode in Node->to_str()
Date: Thu, 19 Oct 2006 15:54:02 -0600
To: bug-POE-Filter-XML [...] rt.cpan.org
From: Eric Waters <ewaters [...] uarc.com>
Distribution: POE-Filter-XML-0.29 File: POE-Filter-XML-0.29/lib/POE/Filter/XML/Node.pm Line: 362 Problems: The code as it reads: $str .= ' ' . $attr . "='" . $self->[+attrs]->{$attr} . "'"; causes issues where entities appear in the value. This needs to be encoded: $str .= ' ' . $attr . "='" . _encode($self->[+attrs]->{$attr}) . "'"; Eric Waters -- Email signed with GnuPG key id 0x7FE92A42 http://www.vegcrew.net/~ewaters/pubkey.asc
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Acknowledged. I'll put decoding/encoding in place based on http://www.w3.org/TR/REC-xml/#NT-AttValue On Thu Oct 19 17:54:34 2006, ewaters@uarc.com wrote: Show quoted text
> Distribution: POE-Filter-XML-0.29 > > File: POE-Filter-XML-0.29/lib/POE/Filter/XML/Node.pm > Line: 362 > > Problems: > > The code as it reads: > > $str .= ' ' . $attr . "='" . $self->[+attrs]->{$attr} . "'"; > > causes issues where entities appear in the value. This needs to be
encoded: Show quoted text
> > $str .= ' ' . $attr . "='" . _encode($self->[+attrs]->{$attr}) . "'"; > > Eric Waters