提交 752f195d 编写于 作者: J Justin Collins

Assume `to_json` to be safe in Rails 4

上级 773a7b82
......@@ -66,6 +66,8 @@ class Brakeman::CheckCrossSiteScripting < Brakeman::BaseCheck
true? tracker.config[:rails][:active_support][:escape_html_entities_in_json]
json_escape_on = true
elsif version_between? "4.0.0", "5.0.0"
json_escape_on = true
end
if !json_escape_on or version_between? "0.0.0", "2.0.99"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册