lib/brakeman/processors/lib/find_call.rb in brakeman-1.3.0 vs lib/brakeman/processors/lib/find_call.rb in brakeman-1.4.0
- old
+ new
@@ -105,10 +105,10 @@
#another call, such as:
#
# User.find(:first, :conditions => "user = '#{params['user']}').name
#
#A search for User.find will not match this unless @in_depth is true.
- if @in_depth and sexp? exp[1] and exp[1][0] == :call
+ if @in_depth and node_type? exp[1], :call
process exp[1]
end
exp
end