• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global Clean XSS

#1
[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

#2
[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

#3
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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