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

Adjust CheckModelAttrAccessible message

上级 ae776523
......@@ -29,7 +29,7 @@ class Brakeman::CheckModelAttrAccessible < Brakeman::BaseCheck
:file => model[:file],
:warning_type => "Mass Assignment",
:warning_code => :dangerous_attr_accessible,
:message => "Potentially dangerous attribute #{attribute} available for mass assignment.",
:message => "Potentially dangerous attribute '#{attribute}' available for mass assignment",
:confidence => confidence
break # Prevent from matching single attr multiple times
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册