PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_authz_host: Also allow for negation of env-var (env=!)
- for allow/deny criteria.
- Trunk version of patch:
- http://svn.apache.org/viewvc?view=rev&revision=667513
- Backport version for 2.2.x of patch:
- http://people.apache.org/~jim/patches/nenv-mod_authz_host.txt
- +1: jim, rpluem, niq
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
enum allowdeny_type {
T_ENV,
+ T_NENV,
T_ALL,
T_IP,
T_HOST,
a->x.from = where;
a->limited = cmd->limited;
- if (!strncasecmp(where, "env=", 4)) {
+ if (!strncasecmp(where, "env=!", 5)) {
+ a->type = T_NENV;
+ a->x.from += 5;
+
+ }
+ else if (!strncasecmp(where, "env=", 4)) {
a->type = T_ENV;
a->x.from += 4;
}
break;
+ case T_NENV:
+ if (!apr_table_get(r->subprocess_env, ap[i].x.from)) {
+ return 1;
+ }
+ break;
+
case T_ALL:
return 1;