httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Fri, 02 May 2003 21:50:55 GMT
nd          2003/05/02 14:50:55

  Modified:    server   core.c
  Log:
  Throw a warning if AllowOverride is used inside of <Location> or <Files>.
  Unfortunately there's no clean way to detect <DirectoryMatch>. It would
  not be sufficient, because <Directory ~> should be checked then, too.
  Hmm.
  
  PR: 19512
  
  Revision  Changes    Path
  1.233     +7 -0      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.232
  retrieving revision 1.233
  diff -u -r1.232 -r1.233
  --- core.c	22 Apr 2003 14:51:42 -0000	1.232
  +++ core.c	2 May 2003 21:50:55 -0000	1.233
  @@ -1213,6 +1213,13 @@
           return err;
       }
   
  +    /* Throw a warning if we're in <Location> or <Files> */
  +    if (ap_check_cmd_context(cmd, NOT_IN_LOCATION | NOT_IN_FILES)) {
  +        ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
  +                     "Useless use of AllowOverride in line %d.",
  +                     cmd->directive->line_num);
  +    }
  +
       d->override = OR_NONE;
       while (l[0]) {
           w = ap_getword_conf(cmd->pool, &l);
  
  
  

Mime
View raw message