提交 b50cd3d1 编写于 作者: J Justin Collins

Avoid duplicate results for Symbol DoS check

上级 8bb0601a
......@@ -33,8 +33,12 @@ class Brakeman::CheckSymbolDoS < Brakeman::BaseCheck
end
def check_unsafe_symbol_creation result
return if duplicate? result or result[:call].original_line
add_result result
call = result[:call]
if result[:method] == :to_sym
args = [call.target]
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册