mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user