• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable 'global_xss_filtering' passing parameters by post

#1
How I can disable 'global_xss_filtering' to pass parameters by post?

And I tried to change the value in the controller that receives the parameters so
'$ this-> config-> set_item (' global_xss_filtering ', FALSE);' but this has not worked for me.

Any idea to solve this
Reply

#2
You should turn off in config.php:
https://github.com/bcit-ci/CodeIgniter/b...g.php#L284

"global_xss_filtering" is depreciated in 3.0:
https://github.com/bcit-ci/CodeIgniter/b...p#L409-410

You can't change it in controllers, because it has already applied before reaching controllers.
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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