3 ms·
Bad advice. The correct solution to SQL injection is to use parameterized queries - relying on filters will screw you over if you actually need to insert metach
by duskwuff 17y ago
Bad advice. The correct solution to SQL injection is to use parameterized queries - relying on filters will screw you over if you actually need to insert metacharacters.
- bretthoerner 17y agoYeah, I'm hoping / assuming the OP was submitted as a joke.
- gaius 17y agoHence the name omega coder, i.e. the last letter of the Greek alphabet, the bottom of the barrel.
- guicifuentes 17y agoThen it seems that Microsoft's MVPs have an obscure sense of humour.
- jasonkester 17y agoSimply amazing that it's 2009 and people are still trying to escape strings by hand. C#, the language for which this piece was written, has had parameterized queries since 2001.
- forinti 17y agoIt's even better to put your queries in stored procs. It makes it easier for your DBA to review your queries.