提交 5560967f 编写于 作者: J Justin Collins

Fix negative array indexes, again

上级 3046bf44
......@@ -452,11 +452,7 @@ class Brakeman::AliasProcessor < Brakeman::SexpProcessor
index = args[0][1]
#Have to do this because first element is :array and we have to skip it
if index >= 0
target[index + 1]
else
target[index - 1]
end
target[1..-1][index + 1]
else
nil
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册