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
Message body not shown because it is not plain text.