about summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-28 21:10:25 -0500
committerJune McEnroe <june@causal.agency>2020-11-28 21:46:28 -0500
commitd9e8a44f6f56393e4b08b4570115de77cf0d2a2f (patch)
tree16fdcf907fba001844e7eb7fa49db21856fff9c4 /atom.c
parentRefactor IMAP struct (diff)
downloadbubger-d9e8a44f6f56393e4b08b4570115de77cf0d2a2f.tar.gz
bubger-d9e8a44f6f56393e4b08b4570115de77cf0d2a2f.zip
Replace templateBuffer with templateString
Diffstat (limited to 'atom.c')
-rw-r--r--atom.c6
1 files changed, 3 insertions, 3 deletions
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) {