From bd4afa842d5893a54ba9525bb7c9a2c691ec6325 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 22 Sep 2021 21:12:53 +0000 Subject: Call sandbox in CGI mode Otherwise upload won't actually work. --- www/temp.causal.agency/up.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit 1.4.1