From 8fa0b9660fb9e9a3098617fe2731f2f1ef34e0a0 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 4 Sep 2016 12:40:42 +0200 Subject: [PATCH] [Bridge] Fix ATOM feed uri detection --- lib/Bridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 9184844..b96d33b 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -664,7 +664,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract { protected function load_ATOM_feed_data($content){ $this->name = $content->title; - // Find most best link (only one, or first of 'alternate') + // Find best link (only one, or first of 'alternate') if(!isset($content->link)){ $this->uri = ''; } elseif (count($content->link) === 1){ @@ -673,7 +673,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract { $this->uri = ''; foreach($content->link as $link){ if(strtolower($link['rel']) === 'alternate'){ - $this->uri = $link['rel']; + $this->uri = $link['href']; break; } }