sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit bf1b35d4a9210a711be3f4d922ea769b96e3e411
parent 4c2b939bbb1991aaff9ad71d5aa0456793f2e787
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 27 Apr 2021 20:17:20 +0200

fixup: a regression with RSS guid, by default ispermalink="true"

Diffstat:
Msfeed.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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;