When parsing RSS 2.0, ignore <link> tags with a namespace prefix.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 31 May 2014 20:26:06 +0000 (22:26 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 31 May 2014 20:26:06 +0000 (22:26 +0200)
src/plugins/rssyl/parsers.c

index 33b50ec23da5e4ab5f7388387d97de144453ca79..4f4c40159dede879b80157e91a292fd111f67a85 100644 (file)
@@ -232,7 +232,8 @@ gint rssyl_parse_rss(xmlDocPtr doc, RSSylFolderItem *ritem, gchar *parent)
                        }
 
                        /* URL link to the original post */
-                       if( !xmlStrcmp(n->name, "link") ) {
+                       if( !xmlStrcmp(n->name, "link") &&
+                                       (!n->ns || !n->ns->prefix || !strlen(n->ns->prefix)) ) {
                                content = xmlNodeGetContent(n);
                                fitem->link = rssyl_format_string(content, FALSE, TRUE);
                                xmlFree(content);