mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds origin to the paramenters that cames from JSON
That is necessary otherwise the Auditlog will try to access it generating a segfault.
This commit is contained in:
parent
52bef20ce5
commit
c5c2690809
@ -48,6 +48,7 @@ int json_add_argument(modsec_rec *msr, const char *value, unsigned length)
|
||||
*/
|
||||
arg->value = apr_pstrmemdup(msr->mp, value, length);
|
||||
arg->value_len = length;
|
||||
arg->origin = "JSON";
|
||||
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "Adding JSON argument '%s' with value '%s'",
|
||||
|
Loading…
x
Reference in New Issue
Block a user