mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Enable sanitizing JSON request bodies in native audit log format
f86de56 enabled sanitizing JSON request body data in JSON audit log formats (the commit message is misleading). This commit supplements JSON request body sanitization to support sanitized elements in native audit log formats.
This commit is contained in:
parent
830f0b7c54
commit
8d4124eee2
@ -1739,7 +1739,7 @@ void sec_audit_logger_native(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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user