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 Fri, 31 Aug 2001 22:33:24 GMT
wrowe       01/08/31 15:33:24

  Modified:    server   request.c
  Log:
    Ahhh, a const headache.  Here's a flag that is writeable.
  
  Revision  Changes    Path
  1.46      +3 -3      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- request.c	2001/08/31 22:29:28	1.45
  +++ request.c	2001/08/31 22:33:24	1.46
  @@ -1554,14 +1554,14 @@
   
       /* Translate r->filename, if it was canonical, it stays canonical
        */
  -    if (r->canonical_filename != r->filename)
  -        r->canonical_filename = NULL;
  +    if (r->canonical_filename == r->filename)
  +        rnew->canonical_filename = (char*)(1);
       if (apr_filepath_merge(&rnew->filename, fdir, new_file,
                              APR_FILEPATH_TRUENAME, rnew->pool) != APR_SUCCESS) {
           rnew->status = HTTP_FORBIDDEN;
           return rnew;
       }
  -    if (r->canonical_filename)
  +    if (rnew->canonical_filename)
           rnew->canonical_filename = rnew->filename;
   
       /*
  
  
  

Mime
View raw message