lib/contrast/agent/protect/rule/base_service.rb in contrast-agent-6.9.0 vs lib/contrast/agent/protect/rule/base_service.rb in contrast-agent-6.10.0
- old
+ new
@@ -94,9 +94,15 @@
ia_result.rule_id == rule_name &&
ia_result.score_level != Contrast::Agent::Reporting::ScoreLevel::IGNORE
end
end
+ def build_attack_result _context
+ result = Contrast::Agent::Reporting::AttackResult.new
+ result.rule_id = rule_name
+ result
+ end
+
# @param context [Contrast::Agent::RequestContext]
# @param potential_attack_string [String, nil]
# @param **kwargs
# @return [Contrast::Agent::Reporting]
def find_attacker context, potential_attack_string, **kwargs