diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-27 20:17:20 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-28 18:26:57 +0200 |
commit | bf1b35d4a9210a711be3f4d922ea769b96e3e411 (patch) | |
tree | 4ae9ef30f16999d9d98acf7982bc156b0c0780f8 | |
parent | 4c2b939bbb1991aaff9ad71d5aa0456793f2e787 (diff) |
fixup: a regression with RSS guid, by default ispermalink="true"
-rw-r--r-- | sfeed.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -894,7 +894,9 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort) /* set tag type based on it's attribute value */ if (ctx.tag.id == RSSTagGuid) { - if (isattr(attrispermalink.data, attrispermalink.len, STRP("true"))) + /* if empty the default is "true" */ + if (!attrispermalink.len || + isattr(attrispermalink.data, attrispermalink.len, STRP("true"))) ctx.tag.id = RSSTagGuidPermalinkTrue; else ctx.tag.id = RSSTagGuidPermalinkFalse; |