summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andreas Krennmair <ak@synflood.at> 2014-01-14 19:56:01 +0100
committerGravatar Andreas Krennmair <ak@synflood.at> 2014-01-14 19:56:01 +0100
commit24c0fb5ead9602aadfa3e7d63367bbd215a37f98 (patch)
treee15bb79d0a5dad197a9e3fdc835105e639756ca7
parentc1b6e9e5208e59e9baffc4bcd16990e0d5a09cbb (diff)
downloadnewsboat-24c0fb5ead9602aadfa3e7d63367bbd215a37f98.tar.gz
newsboat-24c0fb5ead9602aadfa3e7d63367bbd215a37f98.tar.zst
newsboat-24c0fb5ead9602aadfa3e7d63367bbd215a37f98.zip
treat feeds that obviously aren't RDF but claim to be RSS 1.0 as RSS 0.9x.
-rw-r--r--rss/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rss/parser.cpp b/rss/parser.cpp
index 88250081..468f7546 100644
--- a/rss/parser.cpp
+++ b/rss/parser.cpp
@@ -223,6 +223,8 @@ feed parser::parse_xmlnode(xmlNode* node) {
f.rss_version = RSS_0_94;
else if (strcmp(version, "2.0")==0 || strcmp(version, "2")==0)
f.rss_version = RSS_2_0;
+ else if (strcmp(version, "1.0")==0)
+ f.rss_version = RSS_0_91;
else {
xmlFree((void *)version);
throw exception(_("invalid RSS version"));