httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_autoindex.c
Date Fri, 31 May 2002 20:50:14 GMT
trawick     2002/05/31 13:50:14

  Modified:    modules/generators mod_autoindex.c
  Log:
  if we autoindex, discard the request body and check for any
  errors doing so
  
  Revision  Changes    Path
  1.109     +6 -0      httpd-2.0/modules/generators/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_autoindex.c,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- mod_autoindex.c	18 May 2002 04:13:12 -0000	1.108
  +++ mod_autoindex.c	31 May 2002 20:50:14 -0000	1.109
  @@ -2133,6 +2133,12 @@
       /* OK, nothing easy.  Trot out the heavy artillery... */
   
       if (allow_opts & OPT_INDEXES) {
  +        int errstatus;
  +
  +        if ((errstatus = ap_discard_request_body(r)) != OK) {
  +            return errstatus;
  +        }
  +
           /* KLUDGE --- make the sub_req lookups happen in the right directory.
            * Fixing this in the sub_req_lookup functions themselves is difficult,
            * and would probably break virtual includes...
  
  
  

Mime
View raw message