- bugfix escape Smarty exception messages to avoid possible script execution

This commit is contained in:
uwe.tews@googlemail.com
2012-09-11 16:23:30 +00:00
parent 81a6d0869b
commit 4305a8931c
2 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
11.09.2012
- bugfix escape Smarty exception messages to avoid possible script execution
10.09.2012
- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979)

View File

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