about summary refs log tree commit diff
path: root/atom.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 /atom.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 'atom.c')
-rw-r--r--atom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atom.c b/atom.c
index 0572cab..1ed940a 100644
--- a/atom.c
+++ b/atom.c
@@ -51,7 +51,7 @@ static int atomAuthor(FILE *file, struct Address addr) {
 
 static char *atomEntryURL(const struct Envelope *envelope) {
 	struct Variable vars[] = {
-		{ "name", pathMangle(envelope->messageID) },
+		{ "name", pathSafe(envelope->messageID) },
 		{0},
 	};
 	return templateURL("/message/[name].mbox", vars);
@@ -99,7 +99,7 @@ int atomEntryClose(FILE *file) {
 
 static char *atomFeedURL(const struct Envelope *envelope, const char *type) {
 	struct Variable vars[] = {
-		{ "name", pathMangle(envelope->messageID) },
+		{ "name", pathSafe(envelope->messageID) },
 		{ "type", type },
 		{0},
 	};