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 0b9e174af47ed270cfe4ef33759edd22a91dd266
parent 0f58de36f4834d168a919c2236771d07d28fe7ae
Author: Joris Vink <joris@coders.se>
Date:   Sat, 20 Jul 2019 20:35:58 +0200

http_argument_urldecode() could fail.

Diffstat:
src/http.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1853,8 +1853,10 @@ http_argument_add(struct http_request *req, char *name, char *value, int qs, struct http_arg *q; struct kore_handler_params *p; - if (decode) - http_argument_urldecode(name); + if (decode) { + if (!http_argument_urldecode(name)) + return; + } TAILQ_FOREACH(p, &(req->hdlr->params), list) { if (qs == 1 && !(p->flags & KORE_PARAMS_QUERY_STRING))