lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-4.4.1 vs lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-4.5.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. +# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/agent/assess/policy/trigger/reflected_xss' require 'contrast/agent/assess/policy/trigger/xpath' require 'contrast/api/decorators/trace_taint_range_tags' @@ -45,11 +45,11 @@ TRIGGER = 'Trigger' def node_class TRIGGER end - def apply_custom_trigger context, trigger_node, source, object, ret, *args - custom_trigger_class.send(@trigger_method, context, trigger_node, source, object, ret, *args) + def apply_custom_trigger trigger_node, source, object, ret, *args + custom_trigger_class.send(@trigger_method, trigger_node, source, object, ret, *args) end def custom_trigger_class @_custom_trigger_class ||= Object.cs__const_get(@trigger_class) end