From 676cc45e8bcc07de0a1f23e623f339c1022285f4 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Tue, 7 Dec 2010 13:06:22 +0000 Subject: 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 --- modules/http/http_request.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/http/http_request.c') 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 -- cgit v1.2.1