lib/contrast/agent/assess/policy/trigger/xpath.rb in contrast-agent-4.8.0 vs lib/contrast/agent/assess/policy/trigger/xpath.rb in contrast-agent-4.9.0

- old
+ new

@@ -1,9 +1,8 @@ # Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true -require 'contrast/components/interface' module Contrast module Agent module Assess module Policy @@ -14,11 +13,9 @@ # respectively. Since untrusted user input comes into these triggers # as a splat argument or an options hash, we need to iterate through # these objects to see if we were tracking on any of them and report # a finding if so. class Xpath - include Contrast::Components::Interface - class << self def xpath_expression_trigger trigger_node, _source, object, ret, *args return ret unless args process(trigger_node, object, ret, *args)