提交 527656d4 编写于 作者: J Justin Collins

Escape method names in rescan regex

上级 8ec72784
......@@ -322,7 +322,7 @@ class Brakeman::Rescanner < Brakeman::Scanner
end
end
method_matcher = /##{method_names.join('|')}$/
method_matcher = /##{method_names.map {|n| Regexp.escape(n.to_s)}.join('|')}$/
#Rescan controllers that mixed in library
tracker.controllers.each do |name, controller|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册