-
-
Save rafi/446138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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