]> granicus.if.org Git - apache/commitdiff
fix bogus include recursion error when q->uri and rr->uri are both:
authorDoug MacEachern <dougm@apache.org>
Fri, 24 Aug 2001 06:47:35 +0000 (06:47 +0000)
committerDoug MacEachern <dougm@apache.org>
Fri, 24 Aug 2001 06:47:35 +0000 (06:47 +0000)
"INTERNALLY GENERATED file-relative req"

PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90624 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index aa499b49e3c79d26a1a5c86a8bba179a561a3d9d..28d269bf5db0d19da27cc0219a8de2a9275c1c06 100644 (file)
@@ -859,7 +859,7 @@ static int handle_include(include_ctx_t *ctx, apr_bucket_brigade **bb, request_r
                         for (q = p; q != NULL; q = q->prev) {
                             if ((q->filename && rr->filename && 
                                     (strcmp(q->filename, rr->filename) == 0)) ||
-                                (strcmp(q->uri, rr->uri) == 0))
+                                ((*q->uri == '/') && (strcmp(q->uri, rr->uri) == 0)))
                             {
                                 founddupe = 1;
                                 break;