Welcome Guest, Not a member yet? Register   Sign In
XSS filtering and HTML
#1

[eluser]Ahmed Nuaman[/eluser]
Hi,

I kept getting the error:

Code:
<br />

<b>Fatal error</b>:  Call to undefined function get_instance() in <b>D:\XXXX\wwwroot

\system\libraries\Input.php</b> on line <b>855</b><br />

PHP Fatal error:  Call to undefined function get_instance() in D:\XXXX\wwwroot\system

\libraries\Input.php on line 855

I fixed it by:

Code:
function _html_entity_decode_callback($match)
    {
        /*$CI =& get_instance();
        $charset = $CI->config->item('charset');*/
        
        $CFG =& load_class('Config');
        $charset = $CFG->item('charset');

        return $this->_html_entity_decode($match[0], strtoupper($charset));
    }

I hope that's cool.


Messages In This Thread
XSS filtering and HTML - by El Forum - 01-23-2008, 03:53 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 09:58 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:02 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:06 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:10 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:21 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:26 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:33 AM
XSS filtering and HTML - by El Forum - 01-23-2008, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB