lib/contrast/agent/reporting/settings/exclusions.rb in contrast-agent-6.1.0 vs lib/contrast/agent/reporting/settings/exclusions.rb in contrast-agent-6.1.1

- old
+ new

@@ -34,11 +34,11 @@ # modes [String] If this exclusion applies to assess or protect. [assess, defend] # assess_rules [Array] Array of assess rules to which this exclusion applies. AssessRuleID [String] # denylist [String] The call, if in the stack, should result in the agent not taking action. # } def code_exclusions= code_exclusions - @_code_exclusions = code_exclusions if code_exclusions.is_a? Array + @_code_exclusions = code_exclusions if code_exclusions.is_a?(Array) end # Cases where rules should be excluded if violated from a given input. # # @return input_exclusions [Array<InputExclusions>] Array of InputExclusions: { @@ -73,11 +73,11 @@ # urls [Array] Array of URLs to which the exclusions apply. URL [String] # match_strategy [String] If this exclusion applies to all URLs or only those specified. [ALL, ONLY] # type [String] The type of the input [COOKIE, PARAMETER, HEADER, BODY, QUERYSTRING] # } def input_exclusions= input_exclusions - @_input_exclusions = input_exclusions if input_exclusions.is_a? Array + @_input_exclusions = input_exclusions if input_exclusions.is_a?(Array) end # A case where rules should be excluded if violated during a call to a given URL. # # @return url_exclusions [Array<UrlExclusions>] Array of UrlExclusions: { @@ -112,10 +112,10 @@ # urls [Array] Array of URLs to which the exclusions apply. URL [String] # match_strategy [String] If this exclusion applies to all URLs or only those specified. [ALL, ONLY] # type [String] The type of the input [COOKIE, PARAMETER, HEADER, BODY, QUERYSTRING] # } def url_exclusions= url_exclusions - @_url_exclusions = url_exclusions if url_exclusions.is_a? Array + @_url_exclusions = url_exclusions if url_exclusions.is_a?(Array) end end end end end