]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Back port W. Rowe's 2.0 a fix for the /?M=D autoindex problem.
authorBill Stoddard <stoddard@apache.org>
Tue, 2 Oct 2001 16:05:20 +0000 (16:05 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 2 Oct 2001 16:05:20 +0000 (16:05 +0000)
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

src/modules/standard/mod_negotiation.c

index 38239428d726596840bb6ec4e06d75f1dd5fda7f..629660b8f04843454adcaf292bcc0161ba7e2b0e 100644 (file)
@@ -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;