summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@php.net>2001-08-19 21:07:50 +0000
committerDoug MacEachern <dougm@php.net>2001-08-19 21:07:50 +0000
commit4829b93fb2d157631ad88960b506aadf7e7769a0 (patch)
tree1c1858a5d54d283983fc6f44a0d1a0e53886a844
parentba4a1f2df2363f06d4a67f7c899e1115b927bd80 (diff)
downloadphp-git-4829b93fb2d157631ad88960b506aadf7e7769a0.tar.gz
php_input_filter needs to ignore proxy requests
else it swallows POST data that needs to be sent to the downstream server
-rw-r--r--sapi/apache2filter/sapi_apache2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c
index 026fe4dc54..89003f8a9e 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -248,6 +248,10 @@ static int php_input_filter(ap_filter_t *f, apr_bucket_brigade *bb,
apr_status_t rv;
TSRMLS_FETCH();
+ if (f->r->proxyreq) {
+ return ap_get_brigade(f->next, bb, mode, readbytes);
+ }
+
ctx = SG(server_context);
INIT_CTX;