mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Enables sanitizing of json request bodies in the apache module for native log format
This commit is contained in:
committed by
Felipe Zimmerle
parent
4ee1d9c179
commit
f86de566d1
@@ -878,7 +878,7 @@ void sec_audit_logger_json(modsec_rec *msr) {
|
||||
for(i = 0; i < tarr->nelts; i++) {
|
||||
msc_arg *arg = (msc_arg *)telts[i].val;
|
||||
if (arg->origin != NULL &&
|
||||
strcmp(arg->origin, "BODY") != 0)
|
||||
( strcmp(arg->origin, "BODY") != 0 && strcmp(arg->origin, "JSON") !=0) )
|
||||
continue;
|
||||
|
||||
if (last_offset == 0) { /* The first time we're here. */
|
||||
|
Reference in New Issue
Block a user