From 75769413ee167b1a09b2dd505db57794df40d34b Mon Sep 17 00:00:00 2001 From: Karai Csaba Date: Sat, 21 May 2016 11:29:25 +0200 Subject: [PATCH] Added: missing url decode --- web-server/web-server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web-server/web-server.c b/web-server/web-server.c index 2d536b4..f9651ce 100644 --- a/web-server/web-server.c +++ b/web-server/web-server.c @@ -193,7 +193,9 @@ int ICACHE_FLASH_ATTR WEB_CgiJsonHook(HttpdConnData *connData) { *val = 0; char * name = line; - char * value = val+1; + int vblen = os_strlen(val+1) * 2; + char value[vblen]; + httpdUrlDecode(val+1, strlen(val+1), value, vblen); int namLen = os_strlen(name); int valLen = os_strlen(value);