summaryrefslogtreecommitdiffstats
path: root/php-Smarty-3.1.11-CVE-2012-4437.patch
blob: 1f5d4d57540ec0ecabe6d5783ff48ad6b3b0507b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- libs/Smarty.class.php~	2012-06-30 16:00:24.000000000 -0500
+++ libs/Smarty.class.php	2012-09-20 07:30:54.070817148 -0500
@@ -1481,6 +1481,9 @@
  * @package Smarty
  */
 class SmartyException extends Exception {
+    public function __construct($message) {
+        $this->message = htmlentities($message);
+    }
 }
 
 /**