httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_rewrite.c
Date Wed, 02 Apr 2003 20:54:10 GMT
nd          2003/04/02 12:54:10

  Modified:    src/modules/standard 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
  1.184     +0 -13     apache-1.3/src/modules/standard/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_rewrite.c,v
  retrieving revision 1.183
  retrieving revision 1.184
  diff -u -r1.183 -r1.184
  --- mod_rewrite.c	19 Mar 2003 14:01:07 -0000	1.183
  +++ mod_rewrite.c	2 Apr 2003 20:54:09 -0000	1.184
  @@ -2154,19 +2154,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 does
  -     *  not start with a slash. Here we add again the initially
  -     *  stripped per-directory prefix.
  -     */
  -    if (prefixstrip && !ap_os_is_path_absolute(r->filename)) {
  -        rewritelog(r, 3, "[per-dir %s] add per-dir prefix: %s -> %s%s",
  -                   perdir, r->filename, perdir, r->filename);
  -        r->filename = ap_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