From: Bill Stoddard Date: Tue, 2 Oct 2001 16:05:20 +0000 (+0000) Subject: Back port W. Rowe's 2.0 a fix for the /?M=D autoindex problem. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d507d9bfcaae903085dcc82a13292e116c205d1;p=thirdparty%2Fapache%2Fhttpd.git Back port W. Rowe's 2.0 a fix for the /?M=D autoindex problem. These two lines missing from the fast-redirect logic of mod_negotation.c are what allowed mod_dir to reconstruct the _original_ path (to index.html instead of the new-found index.html.foo), merging the uri (unchanged) with the query string. It then failed, leaving an autoindex listing iff the user provided a query string. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91232 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/modules/standard/mod_negotiation.c b/src/modules/standard/mod_negotiation.c index 38239428d72..629660b8f04 100644 --- a/src/modules/standard/mod_negotiation.c +++ b/src/modules/standard/mod_negotiation.c @@ -2648,6 +2648,8 @@ static int handle_multi(request_rec *r) */ ap_pool_join(r->pool, sub_req->pool); r->mtime = 0; /* reset etag info for subrequest */ + r->uri = sub_req->uri; + r->args = sub_req->args; r->filename = sub_req->filename; r->handler = sub_req->handler; r->content_type = sub_req->content_type;