lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-2.1.0 vs lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-2.1.1

- old
+ new

@@ -253,16 +253,19 @@ process exp.block exp end def process_controller_block exp - self.current_controller = exp.block_call.first_arg.value + if string? exp or symbol? exp + self.current_controller = exp.block_call.first_arg.value - in_controller_block do - process exp[-1] if exp[-1] + in_controller_block do + process exp[-1] if exp[-1] + end + + @current_controller = nil end - @current_controller = nil exp end def extract_action str str.split "#"