about summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/archive.h b/archive.h
index 749ab1b..7c6751d 100644
--- a/archive.h
+++ b/archive.h
@@ -149,7 +149,7 @@ static inline const char *pathUID(uint32_t uid, const char *type) {
 	return buf;
 }
 
-static inline const char *pathMangle(const char *messageID) {
+static inline const char *pathSafe(const char *messageID) {
 	if (!strchr(messageID, '/')) return messageID;
 	static char buf[PATH_MAX];
 	strlcpy(buf, messageID, sizeof(buf));
@@ -161,13 +161,13 @@ static inline const char *pathMangle(const char *messageID) {
 
 static inline const char *pathMessage(const char *messageID, const char *type) {
 	static char buf[PATH_MAX];
-	snprintf(buf, sizeof(buf), "message/%s.%s", pathMangle(messageID), type);
+	snprintf(buf, sizeof(buf), "message/%s.%s", pathSafe(messageID), type);
 	return buf;
 }
 
 static inline const char *pathThread(const char *messageID, const char *type) {
 	static char buf[PATH_MAX];
-	snprintf(buf, sizeof(buf), "thread/%s.%s", pathMangle(messageID), type);
+	snprintf(buf, sizeof(buf), "thread/%s.%s", pathSafe(messageID), type);
 	return buf;
 }
 
sion of it to the port maintainer and it is now in the ports tree. 2019-01-16Reformat index.html with explore linkJune McEnroe 2019-01-16Return false from keydown handler in exploreJune McEnroe 2019-01-08Draw lines to tile edgeJune McEnroe 2019-01-08Factor out default pathsJune McEnroe 2019-01-08Remove incorrect default coordinatesJune McEnroe 2019-01-07Set img src when explore fragment changesJune McEnroe 2019-01-07Compress PNG data in imageJune McEnroe kcgi never enables compression for FastCGI. 2019-01-07madvise MADV_NOCORE in imageJune McEnroe 2019-01-07Add license notice to explore JavaScriptJune McEnroe 2019-01-07Add Q/Home binding in exploreJune McEnroe 2019-01-07Fix explore image URLJune McEnroe 2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe 2019-01-06Add meta viewport to exploreJune McEnroe 2019-01-06Set background and max-width in exploreJune McEnroe 2019-01-06Swallow writes after the connection is closedJune McEnroe It was not okay. 2019-01-06Handle KCGI_HUPJune McEnroe I hope it's okay that I keep writing to the fwopen stream after streamWrite returns -1. 2019-01-06Install html filesJune McEnroe