Skip to content

Commit 046b553

Browse files
author
Felipe Zimmerle
committed
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)
1 parent 5d92e44 commit 046b553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/re_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static int msre_op_ipmatch_execute(modsec_rec *msr, msre_rule *rule, msre_var *v
145145
}
146146

147147
if (res > 0) {
148-
*error_msg = apr_psprintf(msr->mp, "%s at %s.", *error_msg, var->name);
148+
*error_msg = apr_psprintf(msr->mp, "IPmatch: \"%s\" matched at %s.", var->value, var->name);
149149
}
150150

151151
return res;

0 commit comments

Comments
 (0)