Re:No-SQL injection in Mongo PHP
by KaeseEs on Monday March 07, 2011 @04:05PM
(#2298672)
I think you've conflated "not trusting" user data with sanitizing it. To use an analogy from SQL, using prepared statements/parameterized queries doesn't sanitize user data, but it also doesn't trust it (as it doesn't treat data as code). More generally, blacklist sanitizing is a losing game from the outset, whitelist sanitizing is hard, your best bet is to not treat data as code to begin with.
[ Parent
| on HN ]
There are no comments on this comment yet.