]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR:8254
authorJim Jagielski <jim@apache.org>
Wed, 12 Sep 2001 15:16:43 +0000 (15:16 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 12 Sep 2001 15:16:43 +0000 (15:16 +0000)
Obtained from:
Submitted by: Gary Benson <gbenson@redhat.com>
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91009 13f79535-47bb-0310-9956-ffa450edef68

STATUS
src/CHANGES
src/modules/standard/mod_env.c

diff --git a/STATUS b/STATUS
index 0a19501de6a33c9705844773325d6097a53569d8..c86cd0d2c55e7149de5c1ca9cf5b1065b2a15385 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,9 +1,9 @@
 APACHE 1.3 STATUS:                                             -*-text-*-
-  Last modified at [$Date: 2001/09/11 03:29:10 $]
+  Last modified at [$Date: 2001/09/12 15:16:41 $]
 
 Release:
 
-   1.3.21: In development
+   1.3.21: In development - Bill Stoddard has proposed a T&R "soon"
    1.3.20: Tagged and rolled May 15, 2001. Announced May 21, 2001.
    1.3.19: Tagged and rolled Feb 26, 2001. Announced Mar 01, 2001.
    1.3.18: Not released.
index f81b0ffce83a27c4e0519d12cbaa1dbfbe907c28..b0a461c12e58e686e30cc76f72e1800231f58744 100644 (file)
@@ -1,5 +1,8 @@
 Changes with Apache 1.3.21
 
+  *) UnsetEnv from main body of httpd.conf file didn't work; backport
+     of bugfix from 2.0 codebase. [Gary Benson <gbenson@redhat.com>] PR#8254
+
   *) Win32 - add mod_unique_id.so and mod_vhost_alias.so to the build.
      [William Rowe]
 
index e9a2df28e77f1c7d50382546e6bfb7369d3acad8..f8c64888a4aa1dcf11ccd8a84fdfd907d4fa276b 100644 (file)
@@ -218,6 +218,15 @@ static const char *add_env_module_vars_unset(cmd_parms *cmd,
     sconf->unsetenv = sconf->unsetenv ?
         ap_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
+         */
+        ap_table_unset(sconf->vars, arg);
+    }
+
     return NULL;
 }