Assuming that name is a String obtained by an tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers
Option B: Escapes single quotes using String.escapeSingleQuotes, protecting against SOQL injection.
Option C: Uses bind variables, which are inherently safe from SOQL injection.
[Reference: SOQL and SOSL Injection Prevention, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit