|
|
|
|
|
by userbinator
4263 days ago
|
|
Drupal uses prepared statements in all its SQL queries. There's this common misconception "just use prepared statements and they'll completely prevent SQL injection" floating around. Good to see (yet another) counterexample of that. Prepared statements and parameters are only strategies that can help, but they don't replace an understanding of where the characters in the query are coming from and how they're being used. Escaping shouldn't be a difficult concept to understand either. |
|
It's quite simply shoddy string substitution that's not doing proper escaping, as you pointed out.