Welcome Guest, Not a member yet? Register   Sign In
Error View - Exception via htmlspecialchars
#1

Hi,

Not sure where the best place to put this, but I noticed I was shown an Error Exception from APPPATH/Views/errors/html/error_exception.php at line 183.

Turns out, this was due to:

PHP Code:
$constants get_defined_constants(true); 

Was returning all the constants with STDOUT and another returning a data type of STREAM, which is not being compatible with htmlspecialchars() as found in line 183.

To get around this I updated the code from in line 181:

PHP Code:
if (! is_array($value) && ! is_object($value)) : 

to:

PHP Code:
if(is_string($value) || is_bool($value) || is_numeric($value)): 

There might be a better solution, but hope this helps someone else Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB