From: Doug MacEachern Date: Sun, 19 Aug 2001 21:07:50 +0000 (+0000) Subject: php_input_filter needs to ignore proxy requests X-Git-Tag: PRE_SUBST_Z_MACROS~436 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4829b93fb2d157631ad88960b506aadf7e7769a0;p=php php_input_filter needs to ignore proxy requests else it swallows POST data that needs to be sent to the downstream server --- 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;