mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Merge pull request #1714 from p0pr0ck5/sanitize-json
This commit is contained in:
commit
1adea9f1e8
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#ifdef WITH_YAJL
|
#ifdef WITH_YAJL
|
||||||
|
|
||||||
char *base_offset=NULL;
|
const char *base_offset=NULL;
|
||||||
|
|
||||||
int json_add_argument(modsec_rec *msr, const char *value, unsigned length)
|
int json_add_argument(modsec_rec *msr, const char *value, unsigned length)
|
||||||
{
|
{
|
||||||
|
@ -1749,7 +1749,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
|||||||
for(i = 0; i < tarr->nelts; i++) {
|
for(i = 0; i < tarr->nelts; i++) {
|
||||||
msc_arg *arg = (msc_arg *)telts[i].val;
|
msc_arg *arg = (msc_arg *)telts[i].val;
|
||||||
if (arg->origin != NULL &&
|
if (arg->origin != NULL &&
|
||||||
strcmp(arg->origin, "BODY") != 0)
|
( strcmp(arg->origin, "BODY") != 0 && strcmp(arg->origin, "JSON") != 0) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (last_offset == 0) { /* The first time we're here. */
|
if (last_offset == 0) { /* The first time we're here. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user