• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter stripping script tags

#7
[eluser]BrokenLegGuy[/eluser]
What Eric Barnes and InsiteFX are saying is you need to do something like....

Code:
$fields = array(0=> 'field1', 'field2', 'field3', 'field4', 'field5');
foreach($fields AS $k => $v)
{
    (($v == 'field2') OR ($v == 'field5')) ? $this->input->post($v) : $this->input->post($v, TRUE);
}

or

Code:
$this->input->post('field1', TRUE);
$this->input->post('field2');
$this->input->post('field3', TRUE);
$this->input->post('field4', TRUE);
$this->input->post('field5');

in order to do what you're looking for, XSS enabled on a per-field bases.

Ed


Messages In This Thread
Codeigniter stripping script tags - by El Forum - 03-05-2011, 10:52 AM
Codeigniter stripping script tags - by El Forum - 03-05-2011, 09:52 PM
Codeigniter stripping script tags - by El Forum - 03-06-2011, 09:31 AM
Codeigniter stripping script tags - by El Forum - 03-17-2011, 07:05 AM
Codeigniter stripping script tags - by El Forum - 03-17-2011, 01:23 PM
Codeigniter stripping script tags - by El Forum - 03-18-2011, 12:55 AM
Codeigniter stripping script tags - by El Forum - 03-18-2011, 09:04 AM
Codeigniter stripping script tags - by El Forum - 03-21-2011, 10:14 PM
Codeigniter stripping script tags - by El Forum - 03-22-2011, 05:05 AM
Codeigniter stripping script tags - by El Forum - 03-22-2011, 11:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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