lib/contrast/agent/protect/rule/path_traversal.rb in contrast-agent-3.13.2 vs lib/contrast/agent/protect/rule/path_traversal.rb in contrast-agent-3.14.0
- old
+ new
@@ -1,11 +1,11 @@
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
-cs__scoped_require 'contrast/agent/protect/rule/base_service'
-cs__scoped_require 'contrast/components/interface'
-cs__scoped_require 'contrast/utils/stack_trace_utils'
+require 'contrast/agent/protect/rule/base_service'
+require 'contrast/components/interface'
+require 'contrast/utils/stack_trace_utils'
module Contrast
module Agent
module Protect
module Rule
@@ -50,11 +50,10 @@
protected
def find_attacker context, path
attack_result = nil
attack_result = super(context, path) if infilter?(context)
- attack_result = check_rep_features(context, path, attack_result)
- attack_result
+ check_rep_features(context, path, attack_result)
end
# Build a subclass of the RaspRuleSample using the query string and the
# evaluation
def build_sample context, input_analysis_result, path, **_kwargs