summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-22 21:12:53 +0000
committerJune McEnroe <june@causal.agency>2021-09-22 21:13:12 +0000
commitdbcf4c53325774c83d29cdd96a3e822e71029221 (patch)
tree1310b43292fc54e914e56a97aac76b99d62ed6d5
parentSupport HTTP PUT in up (diff)
downloadsrc-dbcf4c53325774c83d29cdd96a3e822e71029221.tar.gz
src-dbcf4c53325774c83d29cdd96a3e822e71029221.zip
Call sandbox in CGI mode
Otherwise upload won't actually work.
Diffstat (limited to '')
-rw-r--r--www/temp.causal.agency/up.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/temp.causal.agency/up.c b/www/temp.causal.agency/up.c
index af45446e..3a2c08b6 100644
--- a/www/temp.causal.agency/up.c
+++ b/www/temp.causal.agency/up.c
@@ -169,6 +169,7 @@ int main(void) {
 		struct kreq req;
 		enum kcgi_err error = khttp_parse(&req, &Key, 1, &page, 1, 0);
 		if (error) errx(EX_PROTOCOL, "khttp_parse: %s", kcgi_strerror(error));
+		sandbox();
 		error = handle(&req);
 		if (error) errx(EX_PROTOCOL, "%s", kcgi_strerror(error));
 		khttp_free(&req);