Lines 1332-1340
Link Here
|
1332 |
static const char *set_define(cmd_parms *cmd, void *dummy, |
1332 |
static const char *set_define(cmd_parms *cmd, void *dummy, |
1333 |
const char *name, const char *value) |
1333 |
const char *name, const char *value) |
1334 |
{ |
1334 |
{ |
1335 |
const char *err = ap_check_cmd_context(cmd, NOT_IN_HTACCESS); |
|
|
1336 |
if (err) |
1337 |
return err; |
1338 |
if (ap_strchr_c(name, ':') != NULL) |
1335 |
if (ap_strchr_c(name, ':') != NULL) |
1339 |
return "Variable name must not contain ':'"; |
1336 |
return "Variable name must not contain ':'"; |
1340 |
|
1337 |
|
Lines 1358-1366
Link Here
|
1358 |
{ |
1355 |
{ |
1359 |
int i; |
1356 |
int i; |
1360 |
char **defines; |
1357 |
char **defines; |
1361 |
const char *err = ap_check_cmd_context(cmd, NOT_IN_HTACCESS); |
1358 |
|
1362 |
if (err) |
|
|
1363 |
return err; |
1364 |
if (ap_strchr_c(name, ':') != NULL) |
1359 |
if (ap_strchr_c(name, ':') != NULL) |
1365 |
return "Variable name must not contain ':'"; |
1360 |
return "Variable name must not contain ':'"; |
1366 |
|
1361 |
|
Lines 4181-4189
Link Here
|
4181 |
"The name of the default charset to add to any Content-Type without one or 'Off' to disable"), |
4176 |
"The name of the default charset to add to any Content-Type without one or 'Off' to disable"), |
4182 |
AP_INIT_TAKE1("AcceptPathInfo", set_accept_path_info, NULL, OR_FILEINFO, |
4177 |
AP_INIT_TAKE1("AcceptPathInfo", set_accept_path_info, NULL, OR_FILEINFO, |
4183 |
"Set to on or off for PATH_INFO to be accepted by handlers, or default for the per-handler preference"), |
4178 |
"Set to on or off for PATH_INFO to be accepted by handlers, or default for the per-handler preference"), |
4184 |
AP_INIT_TAKE12("Define", set_define, NULL, EXEC_ON_READ|ACCESS_CONF|RSRC_CONF, |
4179 |
AP_INIT_TAKE12("Define", set_define, NULL, EXEC_ON_READ|RSRC_CONF, |
4185 |
"Define a variable, optionally to a value. Same as passing -D to the command line."), |
4180 |
"Define a variable, optionally to a value. Same as passing -D to the command line."), |
4186 |
AP_INIT_TAKE1("UnDefine", unset_define, NULL, EXEC_ON_READ|ACCESS_CONF|RSRC_CONF, |
4181 |
AP_INIT_TAKE1("UnDefine", unset_define, NULL, EXEC_ON_READ|RSRC_CONF, |
4187 |
"Undefine the existence of a variable. Undo a Define."), |
4182 |
"Undefine the existence of a variable. Undo a Define."), |
4188 |
AP_INIT_RAW_ARGS("Error", generate_message, (void*) APLOG_ERR, OR_ALL, |
4183 |
AP_INIT_RAW_ARGS("Error", generate_message, (void*) APLOG_ERR, OR_ALL, |
4189 |
"Generate error message from within configuration."), |
4184 |
"Generate error message from within configuration."), |