PR52845: "DirectoryIndex disabled" should blow away the DirectoryIndex settings
authorEric Covener <covener@apache.org>
Wed, 7 Mar 2012 12:42:09 +0000 (12:42 +0000)
committerEric Covener <covener@apache.org>
Wed, 7 Mar 2012 12:42:09 +0000 (12:42 +0000)
in the current config section, not just override previous config sections.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1297958 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/mappers/mod_dir.c

diff --git a/CHANGES b/CHANGES
index a3b1d3a1c287e3d5a29b7c481fe9dbc1f9959633..16455944dd371dde7361662951a4e40d22afa2d4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,10 @@ Changes with Apache 2.5.0
      envvars: Fix insecure handling of LD_LIBRARY_PATH that could lead to the
      current working directory to be searched for DSOs. [Stefan Fritsch]
 
+  *) "DirectoryIndex disabled" now undoes DirectoryIndex settings in
+     the current configuration section, not just previous config sections.
+     PR52845 [Eric Covener]
+
   *) Fix MPM DSO load failure on AIX.  [Jeff Trawick]
 
   *) core: Add the port number to the vhost's name in the scoreboard.
index 4386dba67ac1494cc029261c22dd51b7386f6d64..52d0273e5dacd0d6bf96a08b1171e53db33fac2a 100644 (file)
@@ -68,6 +68,7 @@ static const char *add_index(cmd_parms *cmd, void *dummy, const char *arg)
             const char *ww = ap_getword_conf(cmd->temp_pool, &tt);
             if (ww == NULL || !ww[0]) {
                /* "disabled" is first, and alone */
+               apr_array_clear(d->index_names); 
                break;
             }
         }