mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
added "empy chunk" check
This commit is contained in:
parent
9c51671b74
commit
b8636a70d1
@ -85,6 +85,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
|
|||||||
return APR_EGENERAL;
|
return APR_EGENERAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (chunk->length > 0) {
|
||||||
if (chunk && (!msr->txcfg->stream_inbody_inspection || (msr->txcfg->stream_inbody_inspection && msr->if_stream_changed == 0))) {
|
if (chunk && (!msr->txcfg->stream_inbody_inspection || (msr->txcfg->stream_inbody_inspection && msr->if_stream_changed == 0))) {
|
||||||
/* 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,
|
||||||
@ -135,6 +136,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