]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove _unused_ code. The condition is never true, because
authorAndré Malo <nd@apache.org>
Wed, 2 Apr 2003 20:54:09 +0000 (20:54 +0000)
committerAndré Malo <nd@apache.org>
Wed, 2 Apr 2003 20:54:09 +0000 (20:54 +0000)
"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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@99177 13f79535-47bb-0310-9956-ffa450edef68

src/modules/standard/mod_rewrite.c

index 9a905e8474f70892811dc070c8198b034f26e0e5..02e0011fa7b9be5277e89a43f3321b2658a34db3 100644 (file)
@@ -2153,19 +2153,6 @@ static int apply_rewrite_rule(request_rec *r, rewriterule_entry *p,
         return 1;
     }
 
-    /*
-     *  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>]')