Skip to content

Commit

Permalink
Fixes #1382 Doesn't recognize atom:link element with no rel attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf committed Sep 25, 2024
1 parent f74cb00 commit 9ca2ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parsers/atom10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9ca2ad6

Please sign in to comment.