You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2003/03/27 23:37:49 UTC

cvs commit: httpd-2.0/modules/mappers mod_rewrite.c

nd          2003/03/27 14:37:49

  Modified:    modules/mappers Tag: APACHE_2_0_BRANCH mod_rewrite.c
  Log:
  Remove _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...
  
  Obtained from: 2.1 (r1.142)
  Reviewed by: Brad Nicholes, Will Rowe
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.135.2.8 +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.135.2.7
  retrieving revision 1.135.2.8
  diff -u -r1.135.2.7 -r1.135.2.8
  --- mod_rewrite.c	20 Mar 2003 21:56:04 -0000	1.135.2.7
  +++ mod_rewrite.c	27 Mar 2003 22:37:48 -0000	1.135.2.8
  @@ -2230,19 +2230,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