You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2001/10/02 18:05:20 UTC
cvs commit: apache-1.3/src/modules/standard mod_negotiation.c
stoddard 01/10/02 09:05:20
Modified: src/modules/standard mod_negotiation.c
Log:
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.
Revision Changes Path
1.107 +2 -0 apache-1.3/src/modules/standard/mod_negotiation.c
Index: mod_negotiation.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_negotiation.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- mod_negotiation.c 2001/02/12 10:18:04 1.106
+++ mod_negotiation.c 2001/10/02 16:05:20 1.107
@@ -2648,6 +2648,8 @@
*/
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;