From: André Malo Date: Wed, 2 Apr 2003 20:54:09 +0000 (+0000) Subject: Remove _unused_ code. The condition is never true, because X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89677d69943bcf0eb57cf9bb8a2fbf6abebcd802;p=thirdparty%2Fapache%2Fhttpd.git 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@99177 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/modules/standard/mod_rewrite.c b/src/modules/standard/mod_rewrite.c index 9a905e8474f..02e0011fa7b 100644 --- a/src/modules/standard/mod_rewrite.c +++ b/src/modules/standard/mod_rewrite.c @@ -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=]')