Comment

Comment by TomGullen

False surely, as another poster commented you want to sanitise inputs for example for user signatures to remove Javascript and other nasties. Sanitising inputs isn't just about protecting against SQL injections.

What the author actually means is the removal of apostraphes to prevent SQL injections can affect your data integrity, so paramatise your queries.

Alternatively replace single apostraphes with double apostraphes in your queries also works, but paramatising queries is a much better practise to get into.

parent TomGullen 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton