Issues

ZF-8330: Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs

Issue Type: Bug Created: 2009-11-18T13:25:07.000+0000 Last Updated: 2009-11-20T12:01:10.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: - FeedSet.patch

Description

Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs:

Code:

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

Output:

<pre class="highlight">
stdClass Object
(
    [rss] => /rss.xml
)

Expected:

<pre class="highlight">
stdClass Object
(
    [rss] => <a href="http://meiobit.com/rss.xml">http://meiobit.com/rss.xml</a>
)

Comments

Posted by Pádraic Brady (padraic) on 2009-11-20T09:14:27.000+0000

Fixed in r19103.

Posted by Jan Sorgalla (jsorgalla) on 2009-11-20T11:46:09.000+0000

This will still fail on uri's with paths, ie.:

http://example.com/sub:

or

http://example.com/sub:

Posted by Jan Sorgalla (jsorgalla) on 2009-11-20T11:47:21.000+0000

Attached patches fixing the uri with paths (reason for reopening the issue)

Posted by Pádraic Brady (padraic) on 2009-11-20T12:01:10.000+0000

Patches applied in r19136.

On a separate note - very good catch!

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