cvs: php4 /sapi/apache2filter sapi_apache2.c
| From: | Doug MacEachern | Date: | Sun, 19 Aug 2001 21:07:50 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6956@lists.php.net to get a copy of this message | ||
dougm Sun Aug 19 17:07:50 2001 EDT
Modified files:
/php4/sapi/apache2filter sapi_apache2.c
Log:
php_input_filter needs to ignore proxy requests
else it swallows POST data that needs to be sent to the downstream server
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.47 php4/sapi/apache2filter/sapi_apache2.c:1.48
--- php4/sapi/apache2filter/sapi_apache2.c:1.47 Sun Aug 19 16:28:36 2001
+++ php4/sapi/apache2filter/sapi_apache2.c Sun Aug 19 17:07:50 2001
@@ -248,6 +248,10 @@
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;