From 3143d89fc0f2124fd43c5da5a776f2349408033d Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Thu, 27 Nov 2014 03:22:17 +0100 Subject: [PATCH 1/1] RSSyl: Ignore rel="..." feed link in Atom parser. --- src/plugins/rssyl/libfeed/parser_atom10.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/rssyl/libfeed/parser_atom10.c b/src/plugins/rssyl/libfeed/parser_atom10.c index f1ba9b391..7e475b3ff 100644 --- a/src/plugins/rssyl/libfeed/parser_atom10.c +++ b/src/plugins/rssyl/libfeed/parser_atom10.c @@ -48,9 +48,12 @@ void feed_parser_atom10_start(void *data, const gchar *el, const gchar **attr) * Set correct location. */ ctx->location = FEED_LOC_ATOM10_AUTHOR; } else if( !strcmp(el, "link") ) { - /* Link tag for the feed */ - g_free(ctx->feed->link); - ctx->feed->link = g_strdup(feed_parser_get_attribute_value(attr, "href")); + if (!feed_parser_get_attribute_value(attr, "rel")) { + /* Link tag for the feed */ + g_free(ctx->feed->link); + ctx->feed->link = + g_strdup(feed_parser_get_attribute_value(attr, "href")); + } } else ctx->location = FEED_LOC_ATOM10_NONE; } else if( ctx->depth == 2 ) { -- 2.25.1