talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3143d89fc0f2124fd43c5da5a776f2349408033d
parent dbedfb9340ffe9a76c2ab6ba3f26c244df00fb54
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 27 Nov 2014 03:22:17 +0100

RSSyl: Ignore rel="..." feed link in Atom parser.

Diffstat:
Msrc/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 @@ -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 ) {