You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getFeedLink() method is broken and returns invalid data.
Current behavior
getFeedLink() on an RSS feed falls back to the Atom\Feed extension, and calls it's getFeedLink() method.
Atom\Feed::getLink() first looks for a <link rel="self" /> element to get a link. If it finds nothing, it gets an empty string. So far so good.
However, it then calls absolutiseUrl() on that value unconditionally, which when passed an empty string dutifully slaps the base domain of the feed onto the start of an empty string, giving you the domain of the site... Which is almost certainly not the self link of the feed, and may not even be related to the feed in the first place. But that's what then gets returned.
How to reproduce
Feed (no pun intended) any RSS feed with no self link into it and call getFeedLink().
Expected behavior
According to the method signatures, it should return null if there is no self link.
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
The
getFeedLink()
method is broken and returns invalid data.Current behavior
getFeedLink()
on an RSS feed falls back to theAtom\Feed
extension, and calls it'sgetFeedLink()
method.Atom\Feed::getLink()
first looks for a<link rel="self" />
element to get a link. If it finds nothing, it gets an empty string. So far so good.However, it then calls
absolutiseUrl()
on that value unconditionally, which when passed an empty string dutifully slaps the base domain of the feed onto the start of an empty string, giving you the domain of the site... Which is almost certainly not theself
link of the feed, and may not even be related to the feed in the first place. But that's what then gets returned.How to reproduce
Feed (no pun intended) any RSS feed with no self link into it and call
getFeedLink()
.Expected behavior
According to the method signatures, it should return null if there is no
self
link.The text was updated successfully, but these errors were encountered: