From 73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Sep 2001 06:02:31 +0000 Subject: fixed bug in POST var handling --- source/web/cgi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/web/cgi.c') diff --git a/source/web/cgi.c b/source/web/cgi.c index 0227cd07a62..7b12bf57489 100644 --- a/source/web/cgi.c +++ b/source/web/cgi.c @@ -221,19 +221,17 @@ void cgi_load_variables(void) pstring dest; convert_string(CH_DISPLAY, CH_UNIX, - variables[i].name, -1, + variables[i].name, strlen(variables[i].name), dest, sizeof(dest)); free(variables[i].name); variables[i].name = strdup(dest); convert_string(CH_DISPLAY, CH_UNIX, - variables[i].value, -1, + variables[i].value, strlen(variables[i].name), dest, sizeof(dest)); free(variables[i].value); variables[i].value = strdup(dest); } - - } -- cgit