From 2d131f2c5fea4b07d75152a7116ceddcc2ed4fc2 Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Mon, 27 Jul 2020 11:37:18 +0200 Subject: [PATCH] fix: malformed non-ascii post variables when not url-encoded --- main.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.pas b/main.pas index 2c21826..f494c26 100644 --- a/main.pas +++ b/main.pas @@ -1,4 +1,4 @@ -{ +{ Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com) This file is part of HFS ~ HTTP File Server. @@ -5982,7 +5982,7 @@ case event of refreshConn(data); 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: if conn.post.mode = PM_URLENCODED then urlToStrings(conn.post.data, data.postVars);