diff options
author | Jim Jagielski <jim@apache.org> | 2011-03-04 19:31:17 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2011-03-04 19:31:17 +0100 |
commit | b6debecc34c49320db83e6b117fe72cb1bce5298 (patch) | |
tree | fe4b70757b7912c63fc542c115ae58e2b7689cf0 /modules/proxy/mod_proxy_fcgi.c | |
parent | mod_cache_disk: Only attempt to commit to the initialisation if the attempt (diff) | |
download | apache2-b6debecc34c49320db83e6b117fe72cb1bce5298.tar.xz apache2-b6debecc34c49320db83e6b117fe72cb1bce5298.zip |
Fix/workaround for BUGZ PR 50851.
By default, mod_proxy_fcgi with not create PATH_INFO, unless
specifically told to.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1078089 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy_fcgi.c')
-rw-r--r-- | modules/proxy/mod_proxy_fcgi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index 7d1b41e2d3..6ebd6d2a85 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -119,10 +119,12 @@ static int proxy_fcgi_canon(request_rec *r, char *url) ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "proxy: FCGI: set r->filename to %s", r->filename); - r->path_info = apr_pstrcat(r->pool, "/", path, NULL); + if (apr_table_get(r->subprocess_env, "proxy-fcgi-pathinfo")) { + r->path_info = apr_pstrcat(r->pool, "/", path, NULL); - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, - "proxy: FCGI: set r->path_info to %s", r->path_info); + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, + "proxy: FCGI: set r->path_info to %s", r->path_info); + } return OK; } |