From d9e8a44f6f56393e4b08b4570115de77cf0d2a2f Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 28 Nov 2020 21:10:25 -0500 Subject: Replace templateBuffer with templateString --- atom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atom.c') diff --git a/atom.c b/atom.c index 3ecebbc..ddfb3f6 100644 --- a/atom.c +++ b/atom.c @@ -38,7 +38,7 @@ static char *atomID(const struct Envelope *envelope) { { "messageID", envelope->messageID }, {0}, }; - return templateURL("mid:[messageID]", vars); + return templateString("mid:[messageID]", vars, escapeURL); } static int atomAuthor(FILE *file, struct Address addr) { @@ -63,7 +63,7 @@ static char *atomEntryURL(const struct Envelope *envelope) { { "type", "mbox" }, {0}, }; - return templateURL("/" PATH_MESSAGE, vars); + return templateString("/" PATH_MESSAGE, vars, escapeURL); } static const char *atomUpdated(time_t time) { @@ -123,7 +123,7 @@ static char *atomThreadURL(const struct Envelope *envelope, const char *type) { { "type", type }, {0}, }; - return templateURL("/" PATH_THREAD, vars); + return templateString("/" PATH_THREAD, vars, escapeURL); } int atomThreadOpen(FILE *file, const struct Envelope *envelope) { -- cgit 1.4.1