From be44367d41b336721bfc6132c99fa447d5748849 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 5 Sep 2013 10:25:45 +0200 Subject: [PATCH] enable auto-escapin in smarty --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index 89c7eb457..85619bc8a 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -66,6 +66,8 @@ class SmartyParser extends Smarty implements ParserInterface $this->debugging = $debug; + $this->escape_html = true; + // Prevent smarty ErrorException: Notice: Undefined index bla bla bla... $this->error_reporting = E_ALL ^ E_NOTICE;