Changes with Apache 2.3.14
+ *) mod_allowmethods: Correct Merging of "reset" and do not allow an
+ empty parameter list for the AllowMethods directive. [Rainer Jung]
+
*) configure: Update selection of modules for 'all' and 'most'. 'all' will
now enable all modules except for example and test modules. Make the
selection for 'most' more useful (including ssl and proxy). Both 'all'
*/
typedef struct am_conf_t {
+ int allowed_set;
apr_int64_t allowed;
} am_conf_t;
am_conf_t *conf = apr_pcalloc(p, sizeof(am_conf_t));
conf->allowed = 0;
+ conf->allowed_set = 0;
return conf;
}
am_conf_t* add = (am_conf_t*) b;
am_conf_t* conf = apr_palloc(pool, sizeof(am_conf_t));
- conf->allowed = add->allowed ? add->allowed : base->allowed;
+ if (add->allowed_set) {
+ conf->allowed = add->allowed;
+ conf->allowed_set = add->allowed_set;
+ } else {
+ conf->allowed = base->allowed;
+ conf->allowed_set = base->allowed_set;
+ }
return conf;
}
{
int i;
am_conf_t* conf = (am_conf_t*) d;
+ if (argc == 0) {
+ return "AllowMethods: No method or 'reset' keyword given";
+ }
if (argc == 1) {
if (strcasecmp("reset", argv[0]) == 0) {
conf->allowed = 0;
+ conf->allowed_set = 1;
return NULL;
}
}
conf->allowed |= (AP_METHOD_BIT << m);
}
+ conf->allowed_set = 1;
return NULL;
}
{NULL}
};
-module AP_MODULE_DECLARE_DATA allowmethods_module = {
+AP_DECLARE_MODULE(allowmethods) = {
STANDARD20_MODULE_STUFF,
am_create_conf,
am_merge_conf,