Skip to content

Commit 1adea9f

Browse files
authored
Merge pull request #1714 from p0pr0ck5/sanitize-json
2 parents a21f970 + 8d4124e commit 1adea9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apache2/msc_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#ifdef WITH_YAJL
1818

19-
char *base_offset=NULL;
19+
const char *base_offset=NULL;
2020

2121
int json_add_argument(modsec_rec *msr, const char *value, unsigned length)
2222
{

apache2/msc_logging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
17491749
for(i = 0; i < tarr->nelts; i++) {
17501750
msc_arg *arg = (msc_arg *)telts[i].val;
17511751
if (arg->origin != NULL &&
1752-
strcmp(arg->origin, "BODY") != 0)
1752+
( strcmp(arg->origin, "BODY") != 0 && strcmp(arg->origin, "JSON") != 0) )
17531753
continue;
17541754

17551755
if (last_offset == 0) { /* The first time we're here. */

0 commit comments

Comments
 (0)