Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created June 3, 2010 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shadowhand/423953 to your computer and use it in GitHub Desktop.
Save shadowhand/423953 to your computer and use it in GitHub Desktop.
diff --git a/classes/kohana/exception.php b/classes/kohana/exception.php
index 7952a7b..657f661 100644
--- a/classes/kohana/exception.php
+++ b/classes/kohana/exception.php
@@ -23,6 +23,8 @@ class Kohana_Exception extends Exception {
*/
public function __construct($message, array $variables = NULL, $code = 0)
{
+ $variables = array_map(array('HTML', 'chars'), $variables);
+
// Set the message
$message = __($message, $variables);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment