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
commitdbcf4c53325774c83d29cdd96a3e822e71029221 (patch)
tree1310b43292fc54e914e56a97aac76b99d62ed6d5 /www
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 'www')
-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);
a>June McEnroe 2019-02-18Match whitespace between * [] {}June McEnroe 2019-02-18Fix function-like #define regexJune McEnroe 2019-02-18Match Tag in RustJune McEnroe 2019-02-18Match sh functions as TagJune McEnroe 2019-02-18Match Sh and Ss as Tag in mdocJune McEnroe 2019-02-18Match statics and typedefs as TagJune McEnroe 2019-02-18Clean up htmlHeaderJune McEnroe 2019-02-18Remove hi line numberingJune McEnroe 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe