Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这条线
User.where("email LIKE ?", "%#{@search}%")
哪个brakeman说它可以用于sql注入
是否有更好、更安全的方式来编写此行(搜索包含电子邮件的用户@search)
@search
它不能用于注射。 这种方式已经很安全了。