Question from the Ruby on Rails test

This query is already protected against SQL injection.

Hard

Suppose the following query:

User.where(“email LIKE ‘%gmail.com%’“)

How to modify this query to avoid SQL injection?

Author: InconnuStatus: PublishedQuestion passed 81 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!