Issues

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

Fixed in r19028 - thanks for reporting!