Skip Menu |

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

Report information
The Basics
Id: 62302
Status: new
Priority: 0/
Queue: XML-RSSLite

Owner: Nobody in particular
Requestors: SILASMONK [...]

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

Subject: regexp error parsing certain feed (forwarded from user)
Download (untitled) / with headers
text/plain 479b
The file below run as "perl" gets an error Unmatched [ in regex; marked by <-- HERE in m/![ <-- HERE CDATA[/ at /usr/share/perl5/XML/ line 266. I suspect the parsing somehow lets "CDATA[" get in as a tag to be matched, or skipped. I know rsslite doesn't handle cdata, but I think a little quoting can protect it against evil tags (or apparent tags). I got some joy from the diff below. I struck this at a feed
text/x-perl 285b
use strict; use XML::RSSLite; my %feed; my $xml = '<?xml version="1.0"?> <rss version="2.0"> <channel> <item> <description> <![CDATA[ <b>something bold</b> <br /> ]]> </description> </item> </channel> </rss> '; parseRSS(\%feed, \$xml); print $feed{'item'}->{'link'};

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to