Skip Menu |

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

Report information
The Basics
Id: 4462
Status: resolved
Priority: 0/
Queue: XML-RSS

People
Owner: Nobody in particular
Requestors: rt.cpan.org [...] devco.net
Cc:
AdminCc:

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



Subject: Incorrect escaping
hello, When adding items using add_item I notice that things like < and other entities get escaped correctly though I found that accented characters does not get escaped correctly. See the file http://mail.devco.net/~rip/freebsd.security.xml on line 3512. This results in the feed failing validation. Thank you.
Sorry, forgot to mention the following: XML::RSS version 1.02 This is perl, version 5.005_03 built for i386-freebsd FreeBSD 4.9 [guest - Sat Nov 22 16:51:47 2003]: Show quoted text
> hello, > > When adding items using add_item I notice that things like < and other > entities get escaped correctly though I found that accented > characters does not get escaped correctly. > > See the file http://mail.devco.net/~rip/freebsd.security.xml on line > 3512. > > This results in the feed failing validation. > > Thank you.
XML:RSS has never had a very rational escaping/encoding policy. One of these days will rip out the guts of the module (and stop using XML::Parser while we're at it) I took a look at the below feed, but I don't see the problem. Could you perhaps supply a short sample of the code you ran that was generating broken RSS? thanks kellan [guest - Sat Nov 22 16:51:47 2003]: Show quoted text
> hello, > > When adding items using add_item I notice that things like < and other > entities get escaped correctly though I found that accented characters > does not get escaped correctly. > > See the file http://mail.devco.net/~rip/freebsd.security.xml on line > 3512. > > This results in the feed failing validation. > > Thank you.
hey, On line 3512 you will see the following: "Fernando Córdova Suárez" and you can see what the feed validator thinks about it here: http://www.feedvalidator.org/check?url=http%3A%2F%2Fmail.devco.net%2F%7Erip%2Ffreebsd.security.xml+ that should show it nicely. thanks, hope this helps. [KELLAN - Sun Nov 23 02:04:27 2003]: Show quoted text
> XML:RSS has never had a very rational escaping/encoding policy. One > of > these days will rip out the guts of the module (and stop using > XML::Parser while we're at it) > > I took a look at the below feed, but I don't see the problem. > > Could you perhaps supply a short sample of the code you ran that was > generating broken RSS? > > thanks > kellan > > > [guest - Sat Nov 22 16:51:47 2003]: >
> > hello, > > > > When adding items using add_item I notice that things like < and
> other
> > entities get escaped correctly though I found that accented
> characters
> > does not get escaped correctly. > > > > See the file http://mail.devco.net/~rip/freebsd.security.xml on line > > 3512. > > > > This results in the feed failing validation. > > > > Thank you.
> >
hello, I fiddled some more and found that pushing my description content through HTML::Entities::encode fixes it up perfectly :) [guest - Sun Nov 23 06:40:17 2003]: Show quoted text
> hey, > > On line 3512 you will see the following: > > "Fernando Córdova Suárez" > > and you can see what the feed validator thinks about it here: > >
http://www.feedvalidator.org/check?url=http%3A%2F%2Fmail.devco.net%2F%7Erip%2Ffreebsd.security.xml+ Show quoted text
> > that should show it nicely. > > thanks, hope this helps. > > [KELLAN - Sun Nov 23 02:04:27 2003]: >
> > XML:RSS has never had a very rational escaping/encoding policy. One > > of > > these days will rip out the guts of the module (and stop using > > XML::Parser while we're at it) > > > > I took a look at the below feed, but I don't see the problem. > > > > Could you perhaps supply a short sample of the code you ran that was > > generating broken RSS? > > > > thanks > > kellan > > > > > > [guest - Sat Nov 22 16:51:47 2003]: > >
> > > hello, > > > > > > When adding items using add_item I notice that things like < and
> > other
> > > entities get escaped correctly though I found that accented
> > characters
> > > does not get escaped correctly. > > > > > > See the file http://mail.devco.net/~rip/freebsd.security.xml on
> line
> > > 3512. > > > > > > This results in the feed failing validation. > > > > > > Thank you.
> > > >
> >
Fixed in 1.12.