diff --git a/apache2/apache2_io.c b/apache2/apache2_io.c index 026f195d..6b61f7a4 100644 --- a/apache2/apache2_io.c +++ b/apache2/apache2_io.c @@ -84,8 +84,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out, return APR_EGENERAL; } - //if (chunk && !msr->txcfg->stream_inbody_-nspection) { - if (chunk) { + if (chunk && !msr->txcfg->stream_inbody_inspection) { /* Copy the data we received in the chunk */ bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL, f->r->connection->bucket_alloc); @@ -113,7 +112,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out, if (msr->txcfg->debuglog_level >= 4) { msr_log(msr, 4, "Input filter: Forwarded %" APR_SIZE_T_FMT " bytes.", chunk->length); } - } /*else if (msr->stream_input_data != NULL) { + } else if (msr->stream_input_data != NULL) { bucket = apr_bucket_heap_create(msr->stream_input_data, msr->stream_input_length, NULL, f->r->connection->bucket_alloc); @@ -126,7 +125,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out, } } -*/ + if (rc == 0) { modsecurity_request_body_retrieve_end(msr);