Browse files

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

…ow a SPL RuntimeException.
  • Loading branch information...
1 parent 9b13c76 commit e3bf025d5a3bab68ab45355f9be1bdd2da32b6f5 @jschreuder jschreuder committed May 25, 2011
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.');
}

0 comments on commit e3bf025

Please sign in to comment.