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 --- html.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 6d9b6b2..d55e5bf 100644 --- a/html.c +++ b/html.c @@ -96,7 +96,7 @@ static char *htmlReply(const struct Envelope *envelope) { { ">", ">" }, {0}, }; - return templateURL(template, vars); + return templateString(template, vars, escapeURL); } static char *htmlFragment(const char *messageID) { @@ -104,7 +104,7 @@ static char *htmlFragment(const char *messageID) { { "messageID", messageID }, {0}, }; - return templateURL("#[messageID]", vars); + return templateString("#[messageID]", vars, escapeURL); } static char *htmlMbox(const char *messageID) { @@ -113,7 +113,7 @@ static char *htmlMbox(const char *messageID) { { "type", "mbox" }, {0}, }; - return templateURL("../" PATH_MESSAGE, vars); + return templateString("../" PATH_MESSAGE, vars, escapeURL); } static int @@ -353,7 +353,7 @@ int htmlAttachment( const char *template = { Q(
  • [name][type][/][subtype]
  • ) }; - char *url = templateURL("../" PATH_ATTACHMENT, path); + char *url = templateString("../" PATH_ATTACHMENT, path, escapeURL); const char *name = paramGet(part->disposition.params, "filename"); if (!name) name = paramGet(part->params, "name"); struct Variable vars[] = { @@ -383,7 +383,7 @@ static char *htmlThreadURL(const struct Envelope *envelope, const char *type) { { "type", type }, {0}, }; - return templateURL("../" PATH_THREAD, vars); + return templateString("../" PATH_THREAD, vars, escapeURL); } int htmlThreadHead(FILE *file, const struct Envelope *envelope) { @@ -553,7 +553,7 @@ static char *htmlIndexURL(const struct Envelope *envelope) { { "type", "html" }, {0}, }; - return templateURL(PATH_THREAD, vars); + return templateString(PATH_THREAD, vars, escapeURL); } int htmlIndexThread( -- cgit 1.4.1