13.01.2013

- enhancement allow to disable exception message escaping by SmartyException::$escape = false;  (Issue #130)
This commit is contained in:
uwe.tews@googlemail.com
2013-01-13 21:13:14 +00:00
parent af4735193e
commit 73c7b32c83
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk ===== ===== trunk =====
13.01.2013
- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130)
09.01.2013 09.01.2013
- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966) - bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966)
- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127) - bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127)

View File

@@ -1488,8 +1488,9 @@ if (Smarty::$_CHARSET !== 'UTF-8') {
* @package Smarty * @package Smarty
*/ */
class SmartyException extends Exception { class SmartyException extends Exception {
public static $escape = true;
public function __construct($message) { public function __construct($message) {
$this->message = htmlentities($message); $this->message = self::$escape ? htmlentities($message) : $message;
} }
} }