Skip to content

Commit 6bb4461

Browse files
allanrboFelipe Zimmerle
authored andcommitted
AppGw WAF version that doesn't block failed body parsing in detect-only mode
1 parent 2ae357b commit 6bb4461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/mod_security2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ static int hook_request_late(request_rec *r) {
10131013
}
10141014

10151015
rc = read_request_body(msr, &my_error_msg);
1016-
if (rc < 0) {
1016+
if (rc < 0 && msr->txcfg->is_enabled == MODSEC_ENABLED) {
10171017
switch(rc) {
10181018
case -1 :
10191019
if (my_error_msg != NULL) {

0 commit comments

Comments
 (0)