summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-11-24 21:52:47 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-11-24 21:52:47 +0100
commit618a6561cd09f489e30ab652da1649a0d1fec1d5 (patch)
treec93ff0dc602f0b5816cea177b3e826eb3c370edd
parent9670471dad9d245464ce97e61b57f2de05159be8 (diff)
sfeed_mbox: escape the link and enclosure text when using HTML content
commit ed8079dc3e8ce513c788a5ab11444aac221cbc5b added an option $SFEED_MBOX_CONTENT with a content-type text/html to include the content. However in this context the link and enclosure were not fully escaped.
-rw-r--r--sfeed_mbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c
index 34b9b4a..cd6e65d 100644
--- a/sfeed_mbox.c
+++ b/sfeed_mbox.c
@@ -104,14 +104,14 @@ printfeed(FILE *fp, const char *feedname)
fputs("Link: <a href=\"", stdout);
xmlencode(fields[FieldLink], stdout);
fputs("\">", stdout);
- fputs(fields[FieldLink], stdout);
+ xmlencode(fields[FieldLink], stdout);
fputs("</a><br/>\n", stdout);
}
if (fields[FieldEnclosure][0]) {
fputs("Enclosure: <a href=\"", stdout);
xmlencode(fields[FieldEnclosure], stdout);
fputs("\">", stdout);
- fputs(fields[FieldEnclosure], stdout);
+ xmlencode(fields[FieldEnclosure], stdout);
fputs("</a><br/>\n", stdout);
}
fputs("</p>\n", stdout);