提交 4d619684 编写于 作者: J Justin Collins

Fix Rails 3 verb routes with symbol and hash

like get :blah, :to => "something#else" which should address #9
上级 2f374bb0
......@@ -126,7 +126,7 @@ class Brakeman::Rails3RoutesProcessor < Brakeman::BaseProcessor
def process_verb exp
args = exp[3][1..-1]
if symbol? args[0]
if symbol? args[0] and not hash? args[1]
@tracker.routes[@current_controller] << args[0][1]
elsif hash? args[1]
hash_iterate args[1] do |k, v|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册