From 371003f23d6bfc5acc951ce26f0d087c6b019480 Mon Sep 17 00:00:00 2001 From: Alexkurd <7689609+Alexkurd@users.noreply.github.com> Date: Thu, 24 Dec 2020 19:11:34 +0300 Subject: [PATCH] Update Smarty.class.php Fix SmartyException to show unicode errors instead of empty strings. --- wa-system/vendors/smarty3/Smarty.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa-system/vendors/smarty3/Smarty.class.php b/wa-system/vendors/smarty3/Smarty.class.php index c6b8e2efa..db43e55f2 100644 --- a/wa-system/vendors/smarty3/Smarty.class.php +++ b/wa-system/vendors/smarty3/Smarty.class.php @@ -1503,7 +1503,7 @@ public static function unmuteExpectedErrors() class SmartyException extends Exception { public static $escape = true; public function __construct($message) { - $this->message = self::$escape ? htmlentities($message) : $message; + $this->message = self::$escape ? htmlentities($message, ENT_SUBSTITUTE) : $message; } }