git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@667513
13f79535-47bb-0310-9956-
ffa450edef68
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;