#443629 libxml-rsslite-perl: regexp error parsing certain feed

#443629#5
Date:
2007-09-23 00:24:14 UTC
From:
To:
The file below run as "perl bar.pl" gets an error

    Unmatched [ in regex; marked by <-- HERE in m/![ <-- HERE CDATA[/ at /usr/share/perl5/XML/RSSLite.pm 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

http://rss.weather.com.au/sa/adelaide

#443629#10
Date:
2007-09-25 00:05:44 UTC
From:
To:
I wrote:

Actually, I see that doesn't really do the right thing.  It avoids a
regexp error, but the data doesn't come out right.