Does cakePHP use mysql_real_escape_string for sql data and strip_tags and html encode by default or should it be done by the user/programmer?
+1
A:
Cake's DboMysql adaptor is mysql_real_escaping
strings, but may do other things for other types and values (such as using NULL
). See for yourself: http://api.cakephp.org/view_source/dbo-mysql/#l-628
deceze
2010-09-28 23:24:03