• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xss error on script tag

#1
[eluser]MaDe[/eluser]
I globally enabled xss filtering in my config
Code:
$config['global_xss_filtering'] = TRUE;
and submitted a form field with the following content:
Code:
alert('Test');
The following error occured:
Quote:Fatal error: Call to undefined function get_instance() in ***snip***\system\libraries\Input.php on line 855
I looked it up in the code and found the following lines, that produce the error:
Code:
$CI =& get_instance();
$charset = $CI->config->item('charset');
I was able to workaround by using
Code:
$CFG =& load_class('Config');
$this->charset = $CFG->item('charset');
As I don't know, why get_instance doesn't work (I found it in some other places, where it seems to work), I can't fix it in another way.

Is this a bug worth bug-tracking?


Messages In This Thread
xss error on script tag - by El Forum - 07-31-2007, 07:46 AM
xss error on script tag - by El Forum - 07-31-2007, 01:57 PM
xss error on script tag - by El Forum - 08-01-2007, 03:15 AM
xss error on script tag - by El Forum - 08-01-2007, 07:39 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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