提交 317b7b98 编写于 作者: J Justin Collins

Ignore Model#id for XSS check

上级 ea04b1ad
......@@ -17,7 +17,7 @@ class Brakeman::CheckCrossSiteScripting < Brakeman::BaseCheck
@description = "Checks for unescaped output in views"
#Model methods which are known to be harmless
IGNORE_MODEL_METHODS = Set[:average, :count, :maximum, :minimum, :sum]
IGNORE_MODEL_METHODS = Set[:average, :count, :maximum, :minimum, :sum, :id]
MODEL_METHODS = Set[:all, :find, :first, :last, :new]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册