From 5ef76e8f1409804c1395a3377f384c73444d8cb6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 1 Nov 2022 00:45:46 -0400 Subject: [PATCH] Also look for Atom feeds when probing link URLs --- src/Network/Probe.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 45b838da21..fc7113dbda 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1721,6 +1721,7 @@ class Probe $xpath = new DOMXPath($doc); $feedUrl = $xpath->evaluate('string(/html/head/link[@type="application/rss+xml" and @rel="alternate"]/@href)'); + $feedUrl = $feedUrl ?: $xpath->evaluate('string(/html/head/link[@type="application/atom+xml" and @rel="alternate"]/@href)'); $feedUrl = $feedUrl ? self::ensureAbsoluteLinkFromHTMLDoc($feedUrl, $url, $xpath) : ''; -- 2.39.5