lib/prosopite.rb in prosopite-1.0.7 vs lib/prosopite.rb in prosopite-1.0.8
- old
+ new
@@ -81,10 +81,10 @@
next unless fingerprints.uniq.size == 1
kaller = tc[:prosopite_query_caller][location_key]
allow_list = (@allow_stack_paths + DEFAULT_ALLOW_LIST)
- is_allowed = kaller.any? { |f| allow_list.any? { |s| f.include?(s) } }
+ is_allowed = kaller.any? { |f| allow_list.any? { |s| f.match?(s) } }
unless is_allowed
queries = tc[:prosopite_query_holder][location_key]
tc[:prosopite_notifications][queries] = kaller
end