about summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 15:22:36 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 15:22:36 -0400
commit095cc3c2fe0a8bf6bc5191db8b92325cb131fe04 (patch)
tree9ab211f65d0a9d6effc23993be1812bb694f84b9 /html.c
parentAdd <link> elements in Atom (diff)
downloadbubger-095cc3c2fe0a8bf6bc5191db8b92325cb131fe04.tar.gz
bubger-095cc3c2fe0a8bf6bc5191db8b92325cb131fe04.zip
Rename pathMangle to pathSafe
Mangle is a rude word.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 1d28541..d6bf723 100644
--- a/html.c
+++ b/html.c
@@ -79,7 +79,7 @@ int htmlMessageHead(FILE *file, const struct Envelope *envelope) {
 		{ "re", (strncmp(envelope->subject, "Re: ", 4) ? "Re: " : "") },
 		{ "subject", envelope->subject },
 		{ "messageID", envelope->messageID },
-		{ "pathID", pathMangle(envelope->messageID) },
+		{ "pathID", pathSafe(envelope->messageID) },
 		{0},
 	};
 	char *fragment = templateURL("#[messageID]", urlVars);
@@ -129,7 +129,7 @@ int htmlMessageTail(FILE *file) {
 
 int htmlThreadHead(FILE *file, const struct Envelope *envelope) {
 	struct Variable urlVars[] = {
-		{ "pathID", pathMangle(envelope->messageID) },
+		{ "pathID", pathSafe(envelope->messageID) },
 		{0},
 	};
 	char *path = templateURL("[pathID]", urlVars);