mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-15 16:07:10 +03:00
MODSEC-281
This commit is contained in:
@@ -1785,8 +1785,9 @@ char *msre_format_metadata(modsec_rec *msr, msre_actionset *actionset) {
|
|||||||
var->value_len = strlen(actionset->logdata);
|
var->value_len = strlen(actionset->logdata);
|
||||||
expand_macros(msr, var, NULL, msr->mp);
|
expand_macros(msr, var, NULL, msr->mp);
|
||||||
|
|
||||||
logdata = apr_psprintf(msr->mp, " [data \"%s\"]",
|
logdata = apr_psprintf(msr->mp, " [data \"%s",
|
||||||
log_escape_hex(msr->mp, (unsigned char *)var->value, var->value_len));
|
log_escape_hex(msr->mp, (unsigned char *)var->value, var->value_len));
|
||||||
|
logdata = apr_pstrcat(msr->mp, logdata, "\"]", NULL);
|
||||||
|
|
||||||
/* If it is > 512 bytes, then truncate at 512 with ellipsis.
|
/* If it is > 512 bytes, then truncate at 512 with ellipsis.
|
||||||
* NOTE: 512 actual data + 9 bytes of label = 521
|
* NOTE: 512 actual data + 9 bytes of label = 521
|
||||||
|
|||||||
Reference in New Issue
Block a user