ZF-8330: Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs
Description
Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs:
Code:
print_r(Zend_Feed_Reader::findFeedLinks('http://meiobit.com'));
Output:
stdClass Object
(
[rss] => /rss.xml
)
Expected:
stdClass Object
(
[rss] => http://meiobit.com/rss.xml
)
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!