commit 10aa4a28fe91806907427c79ec9ad4b934014a9f
parent 79aea48757f2268fda67c35f82d4b334ccebc36f
Author: Joris Vink <joris@coders.se>
Date: Thu, 5 Dec 2013 20:28:07 +0100
Multipart forms are now also validated via params
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/http.c b/src/http.c
@@ -889,7 +889,8 @@ http_validate_params(struct http_request *req, struct kore_module_handle *hdlr)
struct kore_handler_params *p;
struct http_arg *q, *next;
- http_populate_arguments(req);
+ if (!http_populate_multipart_form(req, &r))
+ http_populate_arguments(req);
for (q = TAILQ_FIRST(&(req->arguments)); q != NULL; q = next) {
next = TAILQ_NEXT(q, list);