"UnsetEnv does not work from main body of httpd.conf"
PR also complains:
"also does not unsetenv()", but this fix does not address that
(i doubt unsetenv is portable or threadsafe)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90542
13f79535-47bb-0310-9956-
ffa450edef68
? apr_pstrcat(cmd->pool, sconf->unsetenv, " ", arg, NULL)
: arg;
+ if (sconf->vars_present && !cmd->path) {
+ /* if {Set,Pass}Env FOO, UnsetEnv FOO
+ * are in the base config, merge never happens,
+ * unset never happens, so just unset now
+ */
+ apr_table_unset(sconf->vars, arg);
+ }
+
return NULL;
}