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

CheckSQL: Add #to_f as safe method to interpolate

上级 0052a787
......@@ -454,7 +454,7 @@ class Brakeman::CheckSQL < Brakeman::BaseCheck
end
end
IGNORE_METHODS_IN_SQL = Set[:id, :table_name, :to_i]
IGNORE_METHODS_IN_SQL = Set[:id, :table_name, :to_i, :to_f]
def safe_value? exp
return true unless sexp? exp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册