From 6bb44619111cfd64d6449922eaaa0d148ac7d84c Mon Sep 17 00:00:00 2001 From: Allan Boll Date: Wed, 23 May 2018 19:21:25 -0700 Subject: [PATCH] AppGw WAF version that doesn't block failed body parsing in detect-only mode --- apache2/mod_security2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index fb399362..7bb215e2 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -1013,7 +1013,7 @@ static int hook_request_late(request_rec *r) { } rc = read_request_body(msr, &my_error_msg); - if (rc < 0) { + if (rc < 0 && msr->txcfg->is_enabled == MODSEC_ENABLED) { switch(rc) { case -1 : if (my_error_msg != NULL) {