From 9ca2ad67911357c87cde5ef1566e888208c147eb Mon Sep 17 00:00:00 2001 From: Lars Windolf Date: Thu, 26 Sep 2024 00:02:07 +0200 Subject: [PATCH] Fixes #1382 Doesn't recognize atom:link element with no rel attribute --- src/parsers/atom10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parsers/atom10.c b/src/parsers/atom10.c index 6f15cf563..df806e6dd 100644 --- a/src/parsers/atom10.c +++ b/src/parsers/atom10.c @@ -307,7 +307,8 @@ atom10_parse_link (xmlNodePtr cur, feedParserCtxtPtr ctxt, struct atom10ParserSt if (ctxt->item) ctxt->item->metadata = metadata_list_append (ctxt->item->metadata, relation, url); } else { - /* g_warning ("Unhandled Atom link with unexpected relation \"%s\"\n", relation); */ + // Atom RFC 4287 4.2.7.2 says no "rel" mean "alternate" + alternate = g_strdup (url); } xmlFree (baseURL); g_free (url);