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

Don't cache Warning#to_row

because sometimes that row gets modified and subsequent
calls to Warning#to_row will return the modified version
thereby breaking things.
上级 c29b3ec4
......@@ -93,8 +93,6 @@ class Brakeman::Warning
#Generates a hash suitable for inserting into a Ruport table
def to_row type = :warning
return @row if @row
@row = { "Confidence" => self.confidence,
"Warning Type" => self.warning_type.to_s,
"Message" => self.format_message }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册