lib/contrast/agent/assess/policy/propagator/database_write.rb in contrast-agent-4.2.0 vs lib/contrast/agent/assess/policy/propagator/database_write.rb in contrast-agent-4.3.0
- old
+ new
@@ -28,12 +28,10 @@
next unless arg.cs__respond_to?(:each_pair)
arg.each_pair do |key, value|
next unless value
next if known_tainted&.include?(key)
-
- properties = Contrast::Agent::Assess::Tracker.properties(value)
- next unless properties
+ next unless (properties = Contrast::Agent::Assess::Tracker.properties!(value))
# TODO: RUBY-540 handle sanitization, handle nested objects
Contrast::Agent::Assess::Policy::PropagationMethod.apply_tags(propagation_node, value)
properties.build_event(propagation_node, value, preshift.object, target, preshift.args)
next unless tracked_value?(value)