1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

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
This commit is contained in:
Eric Covener
2010-12-07 13:06:22 +00:00
parent 7d1829acad
commit 676cc45e8b
3 changed files with 21 additions and 7 deletions

View File

@@ -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