summary refs log tree commit diff
path: root/www
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
commitbd4afa842d5893a54ba9525bb7c9a2c691ec6325 (patch)
tree35eca16111555a9e0b1c53fd0fd1fb37f3669cd3 /www
parentSupport HTTP PUT in up (diff)
downloadsrc-bd4afa842d5893a54ba9525bb7c9a2c691ec6325.tar.gz
src-bd4afa842d5893a54ba9525bb7c9a2c691ec6325.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 75836015..ba6c2bcd 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);
/td>June McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe