codeigniter active record, when to escape, if at all
问题 I just recently started using active record (before I just wrote manual queries since I was so used to them). I was looking at the code of ion_auth and I saw that in a few places the strings had been escaped even though active record was used, i.e ->where($this->identity_column, $this->db->escape_str($identity)) ->where($this->tables['groups'].'.name', $this->db->escape_str($group)) Thing is, I havent escaped anywhere where I have used active record since on the documentation it said active