mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix ipMatch entry on ErrorLog and DebugLog
ipMatch message on error log was not correct, it was missing the matched ip address. This commit adds the correct matched ip address. (See issue #738)
This commit is contained in:
parent
5d92e448ae
commit
046b553736
@ -145,7 +145,7 @@ static int msre_op_ipmatch_execute(modsec_rec *msr, msre_rule *rule, msre_var *v
|
||||
}
|
||||
|
||||
if (res > 0) {
|
||||
*error_msg = apr_psprintf(msr->mp, "%s at %s.", *error_msg, var->name);
|
||||
*error_msg = apr_psprintf(msr->mp, "IPmatch: \"%s\" matched at %s.", var->value, var->name);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user