httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server request.c
Date Thu, 23 Aug 2001 21:58:08 GMT
wrowe       01/08/23 14:58:08

  Modified:    server   request.c
  Log:
    Whoops.  To explain, we won't dup filename unless it really didn't match
    in the first place.  We are about to abuse test_filename, so don't try
    using that copy.
  
  Revision  Changes    Path
  1.28      +2 -2      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- request.c	2001/08/23 21:56:36	1.27
  +++ request.c	2001/08/23 21:58:07	1.28
  @@ -505,8 +505,8 @@
               return HTTP_FORBIDDEN;
           }
           if (strcmp(r->filename, test_filename) != 0)
  -            r->filename = apr_pstrdup(test_filename);
  -        r->canonical_filename = r->test_filename;
  +            r->filename = apr_pstrdup(r->pool, test_filename);
  +        r->canonical_filename = r->filename;
       }
   
       num_dirs = ap_count_dirs(test_filename);
  
  
  

Mime
View raw message