Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Error thrown on non-whitelisted object than can't be cast to string n…

…ow a SPL RuntimeException.
  • Loading branch information...
commit e3bf025d5a3bab68ab45355f9be1bdd2da32b6f5 1 parent 9b13c76
@jschreuder jschreuder authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/security.php
View
2  classes/security.php
@@ -175,7 +175,7 @@ public static function htmlentities($value)
// Throw exception when it wasn't whitelisted and can't be converted to String
if ( ! method_exists($value, '__toString'))
{
- throw new \Fuel_Exception('Object class "'.get_class($value).'" could not be converted to string or '.
+ throw new \RuntimeException('Object class "'.get_class($value).'" could not be converted to string or '.
'sanitized as ArrayAcces. Whitelist it in security.whitelisted_classes in app/config/config.php '.
'to allow it to be passed unchecked.');
}
Please sign in to comment.
Something went wrong with that request. Please try again.