ZF-8327: Zend_Feed_Reader::findFeedLinks() doens't cleanup URI whitespace
Description
Some URIs returned by Zend_Feed_Reader::findFeedLinks() come with linebreaks and spaces.
The following code:
var_dump(Zend_Feed_Reader::findFeedLinks('http://infopod.com.br'));
Returns:
object(stdClass)[8]
public 'rss' => string '
http://feeds.feedburner.com/jonnyken/infoblog' (length=47)
Expected:
object(stdClass)[8]
public 'rss' => string 'http://feeds.feedburner.com/jonnyken/infoblog' (length=47)
Workaround and possible fix:
trim() out the URI
Comments
Posted by Pádraic Brady (padraic) on 2009-11-19T05:01:24.000+0000
Fixed in r19028 - thanks for reporting!