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.

CommentFileSizeAuthor
parser_common_syndication.module.patch967 bytesquickcel

Comments

alex_b’s picture

Version: 6.x-1.6 » 6.x-1.x-dev

Good catch. We need to apply this to 6.x HEAD.

aron novak’s picture

Status: Needs review » Fixed

Thank 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.