]> granicus.if.org Git - apache/commitdiff
next_filter of NULL to any ap_sub_req_lookup*() fn implies the subreq
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 1 Mar 2002 20:44:20 +0000 (20:44 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 1 Mar 2002 20:44:20 +0000 (20:44 +0000)
  will never be run - or we expect to pass the subreq to fast_redirect.
  The comming fix will break invalid ap_sub_req_lookups* expecting to
  run subrequests with the next_filter NULL semantic.

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

modules/generators/mod_autoindex.c

index 66aeac82559260015a32934e977b2154cd6c1f7b..70962b5fa5448a7d457cbb629c50317e31f3577a 100644 (file)
@@ -1005,7 +1005,7 @@ static void emit_head(request_rec *r, char *header_fname, int suppress_amble,
     }
 
     if ((header_fname != NULL)
-        && (rr = ap_sub_req_lookup_uri(header_fname , r, NULL))
+        && (rr = ap_sub_req_lookup_uri(header_fname, r, r->output_filters))
         && (rr->status == HTTP_OK)
         && (rr->filename != NULL)
         && (rr->finfo.filetype == APR_REG)) {
@@ -1099,7 +1099,7 @@ static void emit_tail(request_rec *r, char *readme_fname, int suppress_amble)
      * pretend there's nothing there.
      */
     if ((readme_fname != NULL)
-        && (rr = ap_sub_req_lookup_uri(readme_fname, r, NULL))
+        && (rr = ap_sub_req_lookup_uri(readme_fname, r, r->output_filters))
         && (rr->status == HTTP_OK)
         && (rr->filename != NULL)
         && rr->finfo.filetype == APR_REG) {