Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.x-dev
Component:
Code parser_common
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 03:39 UTC
Updated:
19 Jun 2009 at 13:40 UTC
I ran into a problem when adding an RSS feed from goodreads.com: http://www.goodreads.com/review/list_rss/691257?shelf=currently-reading
When I tried to use views to output the Original Url of the items the link would be formatted incorrectly something like this:
http://example.com/%0A%09%09%20%20http%3A/%252Fwww.goodreads.com/review/...
Looking at the value stored in the database I could see there was a bunch of white space preceding the value. Long story short all I had to do was add a trim function to the $original_url variable and the link now outputs as expected.
Note that I only tried this on RSS 2.0 feeds, I'm not sure if this extends to others.
| Comment | File | Size | Author |
|---|---|---|---|
| parser_common_syndication.module.patch | 967 bytes | quickcel |
Comments
Comment #1
alex_b commentedGood catch. We need to apply this to 6.x HEAD.
Comment #2
aron novakThank you for the patch!
FYI: we have multiple feed type handler functions (_parser_common_syndication_RSS20_parse, _parser_common_syndication_RDF10_parse, etc), you updated only one, but really good catch!