Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: hhn [...] jobindex.dk
onishi [...] hatena.ne.jp
Cc:
AdminCc:

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



Subject: Error generating RSS 2.0
I line 1142: $output .= '<category>'.$self->encode($self->{channel}->{generator}).'</category>' 'generator' should be changed to 'category' so that the line reads: $output .= '<category>'.$self->encode($self->{channel}->{category}).'</category>'."\n"; The code currently outputs the value of the generator-attribute in both the category- and generator-element of the RSS, version 2.0 xml.
Subject: category module does not work for RSS2.0
I think I found a bug that the category module does not work for RSS 2.0. So, I made a patch. Regards, Yasuhiro Onishi onishi@hatena.ne.jp
Subject: RSS.patch
--- RSS.pm.orig 2004-04-21 16:14:43.000000000 +0900 +++ RSS.pm 2006-01-27 17:51:21.679859880 +0900 @@ -1139,7 +1139,7 @@ if ($self->{channel}->{'dc'}->{'category'}) { $output .= '<category>'.$self->encode($self->{channel}->{'dc'}->{'category'}).'</category>'."\n"; } elsif ($self->{channel}->{category}) { - $output .= '<category>'.$self->encode($self->{channel}->{generator}).'</category>'."\n"; + $output .= '<category>'.$self->encode($self->{channel}->{category}).'</category>'."\n"; } # generator
On Fri Jan 27 03:55:04 2006, guest wrote: Show quoted text
> I think I found a bug that the category module does not work for RSS 2.0. > So, I made a patch.
Thanks, applied (r3677). http://svn.perl.org/modules/XML-RSS/trunk/ - ask