]> granicus.if.org Git - apache/commitdiff
Add condition for <If> sections to core config merge
authorNick Kew <niq@apache.org>
Fri, 4 Apr 2008 14:50:58 +0000 (14:50 +0000)
committerNick Kew <niq@apache.org>
Fri, 4 Apr 2008 14:50:58 +0000 (14:50 +0000)
(a fix to r644253)

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

server/core.c

index f6c987643ce5ab988536f1deb52ea6797291dcc6..30353e12d446b078da0f33b72df5193fcf09df85 100644 (file)
@@ -229,6 +229,7 @@ static void *merge_core_dir_configs(apr_pool_t *a, void *basev, void *newv)
     conf->d_is_fnmatch = new->d_is_fnmatch;
     conf->d_components = new->d_components;
     conf->r = new->r;
+    conf->condition = new->condition;
 
     if (new->opts & OPT_UNSET) {
         /* there was no explicit setting of new->opts, so we merge
@@ -2023,7 +2024,6 @@ static const char *ifsection(cmd_parms *cmd, void *mconfig, const char *arg)
         return missing_container_arg(cmd);
     }
 
-    //cmd->path = "*";
     condition = ap_getword_conf(cmd->pool, &arg);
     /* Only if not an .htaccess file */
     if (!old_path) {