From 375c84d4ed58b49836588adf5eb62d1c6bdbc90b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 8 Jul 2007 04:15:38 +0000 Subject: [PATCH] Evidently, when an HTML checkbox is disabled, its value is never sent to the server, even if the value was explicitly set. Reworked the c_auth_mode setting due to this, because it was getting unset. --- webcit/siteconfig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 438ddad9f..ac50269ce 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -531,8 +531,9 @@ void display_siteconfig(void) case 52: sprintf(&access[strlen(access)], ""); sprintf(&access[strlen(access)], _("Enable host based authentication mode")); - sprintf(&access[strlen(access)], "", - ((atoi(buf) != 0) ? "CHECKED" : "")); + sprintf(&access[strlen(access)], "%s", + buf, + ((atoi(buf) != 0) ? "Yes" : "No")); sprintf(&access[strlen(access)], "\n"); break; case 53: @@ -729,7 +730,7 @@ void siteconfig(void) serv_printf("%s", bstr("c_default_cal_zone")); serv_printf("%s", bstr("c_pftcpdict_port")); serv_printf("%s", bstr("c_mgesve_port")); - serv_printf("%s", ((!strcasecmp(bstr("c_auth_mode"), "yes") ? "1" : "0"))); + serv_printf("%s", bstr("c_auth_mode")); serv_printf("%s", bstr("c_funambol_host")); serv_printf("%s", bstr("c_funambol_port")); serv_printf("%s", bstr("c_funambol_source")); -- 2.30.2