envvars: Fix insecure handling of LD_LIBRARY_PATH that could lead to the
current working directory to be searched for DSOs. [Stefan Fritsch]
+ *) core: In AllowOverrideList, do not allow 'None' together with other
+ directives. PR 52823. [Stefan Fritsch]
+
*) mod_slotmem_shm: Support DEFAULT_REL_RUNTIMEDIR for file-based shm.
[Jim Jagielski]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * core: In AllowOverrideList, do not allow 'None' together with other directives.
- PR 52823
- Trunk patch: http://svn.apache.org/viewvc?rev=1302653&view=rev
- 2.4.x patch: Trunk patch works
- +1: sf, covener, druggeri
-
* core: In AllowOverrideList, disallow directives which are only allowed
in VirtualHost or server context.
Trunk patch: http://svn.apache.org/viewvc?rev=1302665&view=rev
/* Throw a warning if we're in <Location> or <Files> */
if (ap_check_cmd_context(cmd, NOT_IN_LOCATION | NOT_IN_FILES)) {
ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(00115)
- "Useless use of AllowOverrideList in line %d of %s.",
- cmd->directive->line_num, cmd->directive->filename);
+ "Useless use of AllowOverrideList at %s:%d",
+ cmd->directive->filename, cmd->directive->line_num);
}
if ((err = ap_check_cmd_context(cmd, NOT_IN_HTACCESS)) != NULL)
return err;
- d->override_list = apr_table_make(cmd->pool, 1);
+ d->override_list = apr_table_make(cmd->pool, argc);
for (i=0;i<argc;i++){
if (!strcasecmp(argv[i], "None")) {
+ if (argc != 1) {
+ return "'None' not allowed with other directives in "
+ "AllowOverrideList";
+ }
return NULL;
}
else {
if (result)
apr_table_set(d->override_list, argv[i], "1");
else
- ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(00116)
- "Discarding unrecognized directive `%s' in AllowOverrideList.",
- argv[i]);
+ ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
+ APLOGNO(00116) "Discarding unrecognized "
+ "directive `%s' in AllowOverrideList at %s:%d",
+ argv[i], cmd->directive->filename,
+ cmd->directive->line_num);
}
}