CodeIgniter Forums
Global Clean XSS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Global Clean XSS (/showthread.php?tid=9636)



Global Clean XSS - El Forum - 07-02-2008

[eluser]zeedy2k[/eluser]
Can I turn this off in one controller only? I have it set in config to True but one controller needs it off.

Cheers
Robert


Global Clean XSS - El Forum - 07-02-2008

[eluser]Bramme[/eluser]
from the user guide
Quote:Setting a Config Item

If you would like to dynamically set a config item or change an existing one, you can so using:
$this->config->set_item('item_name', 'item_value');

Where item_name is the $config array index you want to change, and item_value is its value.

So in that one controller, you just set whatever item_name it is, to false... At least, that should work... If it doesn't, it should be made so it would work :p


Global Clean XSS - El Forum - 07-02-2008

[eluser]Pascal Kriete[/eluser]
It does not work, because the data is cleaned in the input library constructor. The input library is instantiated before the controller, so it's too late by that point.