fix: malformed non-ascii post variables when not url-encoded

This commit is contained in:
Massimo Melina 2020-07-27 11:37:18 +02:00
parent ba2df13122
commit 2d131f2c5f

View File

@ -1,4 +1,4 @@
{ {
Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com) Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com)
This file is part of HFS ~ HTTP File Server. This file is part of HFS ~ HTTP File Server.
@ -5982,7 +5982,7 @@ case event of
refreshConn(data); refreshConn(data);
end; end;
HE_POST_VAR: data.postVars.add(conn.post.varname+'='+conn.post.data); HE_POST_VAR: data.postVars.add(conn.post.varname+'='+UTF8toString(conn.post.data));
HE_POST_VARS: HE_POST_VARS:
if conn.post.mode = PM_URLENCODED then if conn.post.mode = PM_URLENCODED then
urlToStrings(conn.post.data, data.postVars); urlToStrings(conn.post.data, data.postVars);