summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/temp.causal.agency/up.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/temp.causal.agency/up.c b/www/temp.causal.agency/up.c
index b004abd3..9e7b4ff7 100644
--- a/www/temp.causal.agency/up.c
+++ b/www/temp.causal.agency/up.c
@@ -81,7 +81,7 @@ static enum kcgi_err handle(struct kreq *req) {
 
 	} else if (req->method == KMETHOD_POST) {
 		struct kpair *field = req->fieldmap[0];
-		if (!field) return fail(req, KHTTP_400);
+		if (!field || !field->valsz) return fail(req, KHTTP_400);
 
 		char name[256];
 		const char *ext = strrchr(field->file, '.');