in reply to Preventing SQL injection attacks: Placeholders are enough for MySQL, Postgresql and SQLite
..and never untaint by disallowing banned characters instead. you never know if your banned character list is complete.bad_input() if($cityname !~ /^[a-zA-Z .,]+$/);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Preventing SQL injection attacks: Placeholders are enough for MySQL, Postgresql and SQLite
by erik (Sexton) on Jan 10, 2008 at 11:14 UTC | |
by andreas1234567 (Vicar) on Jan 10, 2008 at 19:36 UTC |