How do you protect against SQL injection when using whereRaw? #716
Unanswered
damiencamilleri
asked this question in
Q&A
Replies: 1 comment
-
The make sure you are using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the correct way to protect against SQL injection when using whereRaw? From the syntax in the documentation, new Query("Posts").WhereRaw("lower(Title) = ?", "sql"); , I would have expected escaping/handling/paramaterization of the value using the placeholder '?'; However, I believe this is just still string concatenated formation of the query and offers no protection?
Any advise?
Beta Was this translation helpful? Give feedback.
All reactions