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:
@@ -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
|
||||
|
Reference in New Issue
Block a user