httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Mon, 24 Feb 2003 21:34:52 GMT
nd          2003/02/24 13:34:51

  Modified:    modules/mappers mod_rewrite.c
  Log:
  Well, here comes a major fix. I've splitted the patch into 3 parts
  for better understanding, what I'm doing there. This is part one.
  
  mod_rewrite appears to be very broken in several cases, especially on
  non-unix systems. However, let's start with fixing the path handling, since
  it's _the_ major PITA, e.g. on win32.
  
  This part removes _unused_ code. The condition is never true, because
  "A local rewrite in per-directory context" was caught much earlier.
  I'd guess this piece of code was c&p accidentally...
  
  Revision  Changes    Path
  1.142     +0 -13     httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.141
  retrieving revision 1.142
  diff -u -r1.141 -r1.142
  --- mod_rewrite.c	23 Feb 2003 22:04:23 -0000	1.141
  +++ mod_rewrite.c	24 Feb 2003 21:34:51 -0000	1.142
  @@ -2145,19 +2145,6 @@
       }
   
       /*
  -     *  Now we are sure it is not a fully qualified URL.  But
  -     *  there is still one special case left: A local rewrite in
  -     *  per-directory context, i.e. a substitution URL which is not
  -     *  an absolute path. Here we add again the initially
  -     *  stripped per-directory prefix.
  -     */
  -    if (prefixstrip && !ap_os_is_path_absolute(r->pool, r->filename)) {
  -        rewritelog(r, 3, "[per-dir %s] add per-dir prefix: %s -> %s%s",
  -                   perdir, r->filename, perdir, r->filename);
  -        r->filename = apr_pstrcat(r->pool, perdir, r->filename, NULL);
  -    }
  -
  -    /*
        *  Finally we had to remember if a MIME-type should be
        *  forced for this URL (`RewriteRule .. .. [T=<type>]')
        *  Later in the API processing phase this is forced by our
  
  
  

Mime
View raw message