summaryrefslogtreecommitdiffstats
path: root/source3/web/cgi.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-11 22:48:24 +0000
committerJeremy Allison <jra@samba.org>2004-03-11 22:48:24 +0000
commite3f5b542707e2328030b9d5eff0836a904eccde5 (patch)
tree13124522e17aa9464fa9e4b965f6b34112af0307 /source3/web/cgi.c
parent3d18997afda94504e9db24115aaa56a58086a653 (diff)
downloadsamba-e3f5b542707e2328030b9d5eff0836a904eccde5.tar.gz
samba-e3f5b542707e2328030b9d5eff0836a904eccde5.tar.xz
samba-e3f5b542707e2328030b9d5eff0836a904eccde5.zip
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r--source3/web/cgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index aac009893ca..07b9f52ff77 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -203,13 +203,13 @@ void cgi_load_variables(void)
convert_string(CH_DISPLAY, CH_UNIX,
variables[i].name, -1,
- dest, sizeof(dest));
+ dest, sizeof(dest), True);
free(variables[i].name);
variables[i].name = strdup(dest);
convert_string(CH_DISPLAY, CH_UNIX,
variables[i].value, -1,
- dest, sizeof(dest));
+ dest, sizeof(dest), True);
free(variables[i].value);
variables[i].value = strdup(dest);
}
@@ -336,11 +336,11 @@ static BOOL cgi_handle_authorization(char *line)
convert_string(CH_DISPLAY, CH_UNIX,
line, -1,
- user, sizeof(user));
+ user, sizeof(user), True);
convert_string(CH_DISPLAY, CH_UNIX,
p+1, -1,
- user_pass, sizeof(user_pass));
+ user_pass, sizeof(user_pass), True);
/*
* Try and get the user from the UNIX password file.