does cake do mysql_escape automagically?

2008-09-24 Thread rocket
I was wondering if cake1.19 does does this mysql_escape automagically? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: does cake do mysql_escape automagically?

2008-09-24 Thread The Mullet
If you use the model functions for CRUD: Yes it does. See DboSource::create, which will put all data through value(), which does the escaping in a way which is appropriate to the database you use. If you use use model::query for your statements, you'll have to use the Sanitize class to clean