summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-04-27 20:17:20 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-04-28 18:26:57 +0200
commitbf1b35d4a9210a711be3f4d922ea769b96e3e411 (patch)
tree4ae9ef30f16999d9d98acf7982bc156b0c0780f8
parent4c2b939bbb1991aaff9ad71d5aa0456793f2e787 (diff)
fixup: a regression with RSS guid, by default ispermalink="true"
-rw-r--r--sfeed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index f01b280..086031a 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -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;