httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_config.c
Date Sun, 16 Apr 2000 23:28:53 GMT
rbb         00/04/16 16:28:52

  Modified:    src/main http_config.c
  Log:
  Add back in logic to put the ending container directive in the tree.  This
  needs to be there until we have a validating tree.  Without this, it is
  possible for a config file to read:
  
  <Ifmodule mod_foo.c>
      some directive
  </Limit>
  
  and still be read correctly.  When the tree building functions can validate
  for us, this should be removed, and there is a comment that says so.
  
  Revision  Changes    Path
  1.38      +7 -0      apache-2.0/src/main/http_config.c
  
  Index: http_config.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_config.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- http_config.c	2000/04/14 15:58:55	1.37
  +++ http_config.c	2000/04/16 23:28:52	1.38
  @@ -864,6 +864,13 @@
               current = ap_add_node(&curr_parent, current, newdir, 1);
           }
           else {
  +            /* The next line needs to be removed once we have a validating
  +             * tree building routine.
  +             * It is left in for now, so that we can ensure that
  +             * a container directive is followed by an appropriate closing
  +             * directive.
  +             */
  +            current = ap_add_node(&curr_parent, current, newdir, 0);
               current = curr_parent;
               curr_parent = current->parent;
           }
  
  
  

Mime
View raw message