3 ms·
Pretty sure he would have meant sanitization as in escaping characters like quotes and not just deleting quotes.
by seanwilson 11y ago
Pretty sure he would have meant sanitization as in escaping characters like quotes and not just deleting quotes.
- anton_gogolev 11y agoEscaping won't help. Parameterized queries all the way.
- seanwilson 11y agoSure, I really meant always use some library that will do whatever is needed to pass potential unsafe characters over to SQL and that sanitization doesn't mean you have to delete these characters. Obviously relying on yourself to properly escape everything is going to fail.