http_argument_decode() can fail.

This commit is contained in:
Joris Vink 2019-08-02 11:34:45 +02:00
parent 0b9e174af4
commit c32880e12b
1 changed files with 4 additions and 2 deletions

View File

@ -1870,8 +1870,10 @@ http_argument_add(struct http_request *req, char *name, char *value, int qs,
if (strcmp(p->name, name))
continue;
if (decode)
http_argument_urldecode(value);
if (decode) {
if (!http_argument_urldecode(value))
return;
}
if (!kore_validator_check(req, p->validator, value))
break;