kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 29afdd0b216fefa939bee62691545e63bd29b642
parent e0cdc31c73cfed49a8bd026dd239a5166a26200d
Author: Joris Vink <joris@coders.se>
Date:   Wed, 13 Aug 2014 14:32:49 +0200

Make sure opt always contains what we want

Diffstat:
src/http.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -847,6 +847,9 @@ http_populate_multipart_form(struct http_request *req, int *v) ; c = kore_split_string(d, ";", opt, 5); + if (c < 3) + continue; + if (strcasecmp(opt[0], "form-data")) continue;