limit http_argument_urldecode() to sane characters

This commit is contained in:
Joris Vink 2018-06-28 15:27:55 +02:00
parent c2f66af937
commit 70e945afb7
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ http_argument_urldecode(char *arg)
h[3] = *(p + 2);
h[4] = '\0';
v = kore_strtonum(h, 16, 0, 255, &err);
v = kore_strtonum(h, 16, 0x20, 0x7e, &err);
if (err != KORE_RESULT_OK)
return (err);