projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11654e7
)
When parsing RSS 2.0, ignore <link> tags with a namespace prefix.
author
Andrej Kacian
<ticho@claws-mail.org>
Sat, 31 May 2014 20:26:06 +0000
(22:26 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Sat, 31 May 2014 20:26:06 +0000
(22:26 +0200)
src/plugins/rssyl/parsers.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/parsers.c
b/src/plugins/rssyl/parsers.c
index 33b50ec23da5e4ab5f7388387d97de144453ca79..4f4c40159dede879b80157e91a292fd111f67a85 100644
(file)
--- a/
src/plugins/rssyl/parsers.c
+++ b/
src/plugins/rssyl/parsers.c
@@
-232,7
+232,8
@@
gint rssyl_parse_rss(xmlDocPtr doc, RSSylFolderItem *ritem, gchar *parent)
}
/* URL link to the original post */
}
/* 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);
content = xmlNodeGetContent(n);
fitem->link = rssyl_format_string(content, FALSE, TRUE);
xmlFree(content);