summaryrefslogtreecommitdiff
path: root/source/web
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
commit73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b (patch)
tree5299fd9abb3e1cd21ae33b95bc43a17d2757dcde /source/web
parent3a2a96772304bbf04a2bdb2d3a8f9d92df62fc5f (diff)
downloadsamba-73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b.tar.gz
fixed bug in POST var handling
Diffstat (limited to 'source/web')
-rw-r--r--source/web/cgi.c6
1 files changed, 2 insertions, 4 deletions
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);
}
-
-
}