httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: httpd-2.0/server request.c
Date Sun, 09 Dec 2001 17:48:52 GMT
ben         01/12/09 09:48:52

  Modified:    server   request.c
  Log:
  Reduce magic levels.
  
  Revision  Changes    Path
  1.83      +3 -1      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- request.c	2001/11/09 16:54:00	1.82
  +++ request.c	2001/12/09 17:48:52	1.83
  @@ -618,12 +618,14 @@
               int res;
               char *seg_name;
               char *delim;
  +	    int temp_slash=0;
           
               /* We have no trailing slash, but we sure would appreciate one...
                */
               if (sec_idx && r->filename[filename_len-1] != '/') {
                   r->filename[filename_len++] = '/';
                   r->filename[filename_len] = 0;
  +		temp_slash=1;
               }
   
               /* Begin *this* level by looking for matching <Directory> sections
  @@ -791,7 +793,7 @@
   
               /* That temporary trailing slash was useful, now drop it.
                */
  -            if (seg > startseg) {
  +            if (temp_slash) {
                   r->filename[--filename_len] = '\0';
               }
   
  
  
  

Mime
View raw message