mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
More debug log enhancements - quote values to easier see whitespace.
This commit is contained in:
parent
a3c3f25ae0
commit
0a1610f850
4
CHANGES
4
CHANGES
@ -2,8 +2,8 @@
|
||||
?? ??? 2007 - 2.2.0-trunk
|
||||
-------------------------
|
||||
|
||||
* Enhanced debug log output to log macro expansion and correctly display
|
||||
values that contained NULs.
|
||||
* Enhanced debug log output to log macro expansion, quote values and
|
||||
correctly display values that contained NULs.
|
||||
|
||||
* Removed support for %0 - %9 capture macros as they were incorrectly
|
||||
expanding url encoded values. Use %{TX.0} - %{TX.9} instead.
|
||||
|
@ -1192,13 +1192,13 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
}
|
||||
|
||||
if (msr->txcfg->debuglog_level >= 4) {
|
||||
msr_log(msr, 4, "Executing operator %s%s with param \"%s\" against %s.",
|
||||
msr_log(msr, 4, "Executing operator \"%s%s\" with param \"%s\" against %s.",
|
||||
(rule->op_negated ? "!" : ""), rule->op_name,
|
||||
log_escape(msr->mp, rule->op_param), full_varname);
|
||||
}
|
||||
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "Target value: %s", log_escape_nq_ex(msr->mp, var->value,
|
||||
msr_log(msr, 9, "Target value: \"%s\"", log_escape_nq_ex(msr->mp, var->value,
|
||||
var->value_len));
|
||||
}
|
||||
|
||||
@ -1436,7 +1436,7 @@ apr_status_t msre_rule_process(msre_rule *rule, modsec_rec *msr) {
|
||||
var->value_len = rval_length;
|
||||
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "T (%i) %s: %s", rc, metadata->name,
|
||||
msr_log(msr, 9, "T (%i) %s: \"%s\"", rc, metadata->name,
|
||||
log_escape_nq_ex(mptmp, var->value, var->value_len));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user