mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Uncomment input stream
This commit is contained in:
parent
352fc200b4
commit
21c81331c6
@ -84,8 +84,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
|
|||||||
return APR_EGENERAL;
|
return APR_EGENERAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (chunk && !msr->txcfg->stream_inbody_-nspection) {
|
if (chunk && !msr->txcfg->stream_inbody_inspection) {
|
||||||
if (chunk) {
|
|
||||||
/* Copy the data we received in the chunk */
|
/* Copy the data we received in the chunk */
|
||||||
bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL,
|
bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL,
|
||||||
f->r->connection->bucket_alloc);
|
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) {
|
if (msr->txcfg->debuglog_level >= 4) {
|
||||||
msr_log(msr, 4, "Input filter: Forwarded %" APR_SIZE_T_FMT " bytes.", chunk->length);
|
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,
|
bucket = apr_bucket_heap_create(msr->stream_input_data, msr->stream_input_length, NULL,
|
||||||
f->r->connection->bucket_alloc);
|
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) {
|
if (rc == 0) {
|
||||||
modsecurity_request_body_retrieve_end(msr);
|
modsecurity_request_body_retrieve_end(msr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user