From bf1b35d4a9210a711be3f4d922ea769b96e3e411 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 27 Apr 2021 20:17:20 +0200 Subject: fixup: a regression with RSS guid, by default ispermalink="true" --- sfeed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3