Kohana v3, automatically escape illegal characters?
Posted
by Dom
on Stack Overflow
See other posts from Stack Overflow
or by Dom
Published on 2010-05-02T20:04:35Z
Indexed on
2010/05/02
22:08 UTC
Read the original article
Hit count: 336
Quick question, does Kohana (version 3) automatically escape data that is passed into ORM::factory..... (and everywhere else that has to do with the database)?
For example:
$thread = ORM::factory('thread', $this->request->param('id'));
Would the data passed in the second argument be auto-escaped before it goes in the SQL query or do I have to manually do it? Probably a stupid question and it's better to be safe than sorry, but yeah... I usually do manually escape the data, but I want to know if Kohana does this for me?
Thanks
© Stack Overflow or respective owner