lib/contrast/agent/assess/events/source_event.rb in contrast-agent-3.12.2 vs lib/contrast/agent/assess/events/source_event.rb in contrast-agent-3.13.0
- old
+ new
@@ -63,18 +63,14 @@
# to find the index). I need to address this so that TS can process
# it.
# 2) I'll set the event's source and target to TS values.
# 3) Return the highlight or the first source/target as the taint
# target.
- def determine_taint_target event
+ def determine_taint_target event_dtm
return unless @policy_node&.targets&.any?
- event.source = @policy_node.source_string if @policy_node.source_string
- event.target = if @highlight
- "P#{ @highlight }"
- else
- @policy_node.target_string
- end
+ event_dtm.source = @policy_node.source_string if @policy_node.source_string
+ event_dtm.target = @highlight ? "P#{ @highlight }" : @policy_node.target_string
@highlight || @policy_node.targets[0]
end
end
end
end