Skip to content

Commit b8be144

Browse files
authored
Merge pull request #3063 from owasp-modsecurity/revert-2997-v2/mst/target_log
Revert "Add context info to error message"
2 parents 17d205f + c3688dd commit b8be144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apache2/re.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ char *update_rule_target_ex(modsec_rec *msr, msre_ruleset *ruleset, msre_rule *r
353353
rc = msre_parse_targets(ruleset, p, rule->targets, &my_error_msg);
354354
if (rc < 0) {
355355
if(msr) {
356-
msr_log(msr, 9, "Error parsing rule targets to replace variable: %s", my_error_msg);
356+
msr_log(msr, 9, "Error parsing rule targets to replace variable");
357357
}
358358
#if !defined(MSC_TEST)
359359
else {
360-
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, " ModSecurity: Error parsing rule targets to replace variable: %s", my_error_msg);
360+
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, " ModSecurity: Error parsing rule targets to replace variable");
361361
}
362362
#endif
363363
goto end;

0 commit comments

Comments
 (0)