Issues

ZF-8327: Zend_Feed_Reader::findFeedLinks() doens't cleanup URI whitespace

Issue Type: Bug Created: 2009-11-18T09:35:12.000+0000 Last Updated: 2009-11-19T05:01:24.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Alexandre Gomes Gaigalas (alganet) Assignee: Pádraic Brady (padraic) Tags: - Zend_Feed_Reader

Related issues: Attachments:

Description

Some URIs returned by Zend_Feed_Reader::findFeedLinks() come with linebreaks and spaces.

The following code:

<pre class="highlight">
var_dump(Zend_Feed_Reader::findFeedLinks('<a href="http://infopod.com.br">http://infopod.com.br</a>'));

Returns:

<pre class="highlight">
object(stdClass)[8]
  public 'rss' => string '

<a href="http://feeds.feedburner.com/jonnyken/infoblog">http://feeds.feedburner.com/jonnyken/infoblog</a>' (length=47)

Expected:

<pre class="highlight">
object(stdClass)[8]
  public 'rss' => string '<a href="http://feeds.feedburner.com/jonnyken/infoblog">http://feeds.feedburner.com/jonnyken/infoblog</a>' (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!

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts