Zend Framework

Zend_Feed_Reader::findFeedLinks() doens't cleanup URI whitespace

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Zend_Feed_Reader
  • Labels:
    None

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

Activity

Hide
Pádraic Brady added a comment -

Fixed in r19028 - thanks for reporting!

Show
Pádraic Brady added a comment - Fixed in r19028 - thanks for reporting!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: