From: William A. Rowe Jr Date: Fri, 1 Mar 2002 20:44:20 +0000 (+0000) Subject: next_filter of NULL to any ap_sub_req_lookup*() fn implies the subreq X-Git-Tag: 2.0.33~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b494547e8a985a52b2c1a362942a571f7432da77;p=apache next_filter of NULL to any ap_sub_req_lookup*() fn implies the subreq 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 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 66aeac8255..70962b5fa5 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -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) {