macha
macha

Reputation: 7487

Type of string escape done defaultly by cakePHP

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?

Upvotes: 0

Views: 318

Answers (1)

deceze
deceze

Reputation: 522005

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

Upvotes: 2

Related Questions