CodeIgniter Forums
xss ->EDITED: fix found, but have another question. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: xss ->EDITED: fix found, but have another question. (/showthread.php?tid=3840)



xss ->EDITED: fix found, but have another question. - El Forum - 10-24-2007

[eluser]H8train[/eluser]
ok so I had this big long question about global_xss_filtering and how when i attempt to test with a simple xss:
Code:
alert('xss');

I would get this output:

Code:
Fatal error: Call to undefined function: get_instance() in /blah/blah/blah/libraries/Input.php on line 855

I wanted to get rid of this type of error reporting? so I set in the main index:
error_reporting(0);
but now I would like to redirect back to the main index after this error is generated. anyone have a quick fix?

Thanks for your replies.

Rich


xss ->EDITED: fix found, but have another question. - El Forum - 10-26-2007

[eluser]Derek Allard[/eluser]
Hey Rich.

Are there any native PHP functions that get triggered on error that might be helpful to you?