summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-24 06:02:31 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-24 06:02:31 +0000
commit1c29d9d8f060f5967fdff1ba04dfd982e5da61bb (patch)
treef7e424c063cbf9e08d1fedf0af2496c0e1ae2530
parentc812f1d40e68bbb609d952aa2b62759a02ce2eea (diff)
downloadsamba-1c29d9d8f060f5967fdff1ba04dfd982e5da61bb.tar.gz
samba-1c29d9d8f060f5967fdff1ba04dfd982e5da61bb.tar.bz2
samba-1c29d9d8f060f5967fdff1ba04dfd982e5da61bb.zip
fixed bug in POST var handling
(This used to be commit 73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b)
-rw-r--r--source3/web/cgi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 0227cd07a6..7b12bf5748 100644
--- a/source3/web/cgi.c
+++ b/source3/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);
}
-
-
}