mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Improvements in detection only
This commit is contained in:
parent
3377831b36
commit
cb3353f13d
@ -240,6 +240,10 @@ apr_status_t read_request_body(modsec_rec *msr, char **error_msg) {
|
|||||||
"configured limit (%ld).", msr->txcfg->reqbody_limit);
|
"configured limit (%ld).", msr->txcfg->reqbody_limit);
|
||||||
if(msr->txcfg->if_limit_action == REQUEST_BODY_LIMIT_ACTION_REJECT)
|
if(msr->txcfg->if_limit_action == REQUEST_BODY_LIMIT_ACTION_REJECT)
|
||||||
return -5;
|
return -5;
|
||||||
|
|
||||||
|
seen_eos = 1;
|
||||||
|
|
||||||
|
buflen = (msr->txcfg->reqbody_limit - msr->reqbody_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buflen != 0) {
|
if (buflen != 0) {
|
||||||
|
@ -482,11 +482,6 @@ static apr_status_t modsecurity_request_body_end_raw(modsec_rec *msr, char **err
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if((msr->msc_reqbody_length >= msr->txcfg->reqbody_limit) && (msr->txcfg->if_limit_action != REQUEST_BODY_LIMIT_ACTION_REJECT)) {
|
|
||||||
msr->msc_reqbody_buffer[msr->txcfg->reqbody_limit] = '\0';
|
|
||||||
msr->msc_reqbody_length = msr->txcfg->reqbody_limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Now free the memory used by the chunks. */
|
/* Now free the memory used by the chunks. */
|
||||||
|
|
||||||
chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
|
chunks = (msc_data_chunk **)msr->msc_reqbody_chunks->elts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user