lib/brakeman/processors/lib/rails3_config_processor.rb in brakeman-1.9.2 vs lib/brakeman/processors/lib/rails3_config_processor.rb in brakeman-1.9.3

- old
+ new

@@ -27,12 +27,17 @@ process res end #Look for MyApp::Application.configure do ... end def process_iter exp - if node_type?(exp.block_call.target, :colon2) and exp.block_call.method == :Application + call = exp.block_call + + if node_type?(call.target, :colon2) and + call.target.rhs == :Application and + call.method == :configure + @inside_config = true - process_all exp.body if sexp? exp.body + process exp.block if sexp? exp.block @inside_config = false end exp end