X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=loadcfg.c;h=ede63d26c0188862b5adb1609212456b614d1619;hb=625fe85d139316efcc0cac532a8fd5208486dc88;hp=57c0e0f88437bed22362af2b203583b0f08c04b9;hpb=2d3dd2f6cca48a8370fffd4a82589bd9356a6f0f;p=privoxy.git diff --git a/loadcfg.c b/loadcfg.c index 57c0e0f8..ede63d26 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.55 2006/11/28 15:31:52 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.56 2006/12/17 17:04:51 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -35,6 +35,11 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.55 2006/11/28 15:31:52 fabiankeil * * Revisions : * $Log: loadcfg.c,v $ + * Revision 1.56 2006/12/17 17:04:51 fabiankeil + * Move the
in the generated HTML for the config + * options from the beginning of the string to its end. + * Keeps the white space in balance. + * * Revision 1.55 2006/11/28 15:31:52 fabiankeil * Fix memory leak in case of config file reloads. * @@ -476,6 +481,7 @@ static struct file_list *current_configfile = NULL; #define hash_permit_access 3587953268ul /* "permit-access" */ #define hash_proxy_info_url 3903079059ul /* "proxy-info-url" */ #define hash_single_threaded 4250084780ul /* "single-threaded" */ +#define hash_split_large_cgi_forms 671658948ul /* "split-large-cgi-forms" */ #define hash_suppress_blocklists 1948693308ul /* "suppress-blocklists" */ #define hash_toggle 447966ul /* "toggle" */ #define hash_trust_info_url 430331967ul /* "trust-info-url" */ @@ -676,6 +682,7 @@ struct configuration_spec * load_config(void) config->proxy_args = strdup(""); config->forwarded_connect_retries = 0; config->feature_flags &= ~RUNTIME_FEATURE_CGI_TOGGLE; + config->feature_flags &= ~RUNTIME_FEATURE_SPLIT_LARGE_FORMS; if ((configfp = fopen(configfile, "r")) == NULL) { @@ -1303,6 +1310,20 @@ struct configuration_spec * load_config(void) config->multi_threaded = 0; continue; +/* ************************************************************************* + * split-large-cgi-forms + * *************************************************************************/ + case hash_split_large_cgi_forms : + if ((*arg != '\0') && (0 != atoi(arg))) + { + config->feature_flags |= RUNTIME_FEATURE_SPLIT_LARGE_FORMS; + } + else + { + config->feature_flags &= ~RUNTIME_FEATURE_SPLIT_LARGE_FORMS; + } + continue; + /* ************************************************************************* * toggle (0|1) * *************************************************************************/