diff options
author | Eric Covener <covener@apache.org> | 2010-12-07 13:06:22 +0000 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2010-12-07 13:06:22 +0000 |
commit | 676cc45e8bcc07de0a1f23e623f339c1022285f4 (patch) | |
tree | 7fdfcb13905b0ac7caba0efbf119c30a5e4637c8 /modules/http/http_request.c | |
parent | 7d1829acad2fc7809c4b10eeffeab4f427612a52 (diff) | |
download | httpd-676cc45e8bcc07de0a1f23e623f339c1022285f4.tar.gz |
PR50349: Honor 'AcceptPathInfo OFF' during internal redirects,
such as per-directory mod_rewrite substitutions. This would be left floating
around in the request_rec with a pcalloc'ed value, so the core fixup
hook thought some module had overridden it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1043023 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http/http_request.c')
-rw-r--r-- | modules/http/http_request.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/http/http_request.c b/modules/http/http_request.c index a2d224effd..852b3e110b 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -521,6 +521,11 @@ static request_rec *internal_internal_redirect(const char *new_uri, apr_table_setn(new->subprocess_env, "REDIRECT_STATUS", apr_itoa(r->pool, r->status)); + /* Begin by presuming any module can make its own path_info assumptions, + * until some module interjects and changes the value. + */ + new->used_path_info = AP_REQ_DEFAULT_PATH_INFO; + /* * XXX: hmm. This is because mod_setenvif and mod_unique_id really need * to do their thing on internal redirects as well. Perhaps this is a |