Skip to content

Commit

Permalink
fix for NR-331946
Browse files Browse the repository at this point in the history
  • Loading branch information
prateeksen committed Jan 14, 2025
1 parent ff5a3dd commit 47880b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/newrelic_security/agent/control/collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def collect(case_type, args, event_category = nil, **keyword_args)
def get_user_frame_index(stk)
return -1 if NewRelic::Security::Agent.config[:app_root].nil?
stk.each_with_index do |val, index|
next if stk[index + 1] && stk[index + 1].path.start_with?(NewRelic::Security::Agent.config[:app_root])
return index if val.path.start_with?(NewRelic::Security::Agent.config[:app_root])
end
return -1
Expand Down

0 comments on commit 47880b6

Please sign in to comment.