- Package:
- libxml-rsslite-perl
- Source:
- libxml-rsslite-perl
- Submitter:
- Kevin Ryde
- Date:
- 2014-06-30 22:09:11 UTC
- Severity:
- normal
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
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.