httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgi.c mod_cgid.c
Date Mon, 30 Jul 2001 16:18:05 GMT
stoddard    01/07/30 09:18:05

  Modified:    modules/generators mod_cgi.c mod_cgid.c
  Log:
  Be a bit more explicit. If the filetype is not an APR_REG, the fail the request.
  This relys on directory_walk having already resolved symboloc links.
  
  Revision  Changes    Path
  1.95      +1 -1      httpd-2.0/modules/generators/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgi.c,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- mod_cgi.c	2001/07/30 15:11:40	1.94
  +++ mod_cgi.c	2001/07/30 16:18:05	1.95
  @@ -815,7 +815,7 @@
       if ((rr->path_info && rr->path_info[0]) || rr->args) {
           return -1;
       }
  -    if (rr->finfo.filetype == 0) {
  +    if (rr->finfo.filetype != APR_REG) {
           return -1;
       }
   
  
  
  
  1.88      +1 -1      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- mod_cgid.c	2001/07/30 15:11:40	1.87
  +++ mod_cgid.c	2001/07/30 16:18:05	1.88
  @@ -1060,7 +1060,7 @@
       if ((rr->path_info && rr->path_info[0]) || rr->args) {
           return -1;
       }
  -    if (rr->finfo.filetype == 0) {
  +    if (rr->finfo.filetype != APR_REG) {
           return -1;
       }
   
  
  
  

Mime
View raw message