How to use global_xss_filter ???

#1
[eluser]Buso[/eluser]
I have it set to TRUE but it doesn't seem to do anything

How does it work??


I want it to prevent users from injecting html tags like <javascript> some hacks </javascript>, or anything of the sort.


I am sending a form with a message with some html tags, the controller makes the validation (without the xss_clean option, since i wanna test the global_xss_filter option), then it is saved in the DB with active record. First I was using this:

Code:
public function postComment() {
  $this->db->insert('comments',$_POST);
}

then I tried this:

Code:
public function postComment() {
  $comment = array('date' => time(),
               'username' => $this->input->post('username'),
           'title' => $this->input->post('title'),
           'email' => $this->input->post('email'),
           'body' => $this->input->post('body'));
  $this->db->insert('comments',$comment);
}

But the xss global filter still doesn't work.

What should I do?


Messages In This Thread
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 02:01 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 02:07 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 02:36 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 02:41 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 02:43 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:07 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:09 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:12 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:20 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:34 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:39 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:56 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 03:58 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 04:19 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 04:24 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 07:38 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 07:52 AM
How to use global_xss_filter ??? - by El Forum - 11-05-2009, 08:31 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.