From: Hypolite Petovan Date: Fri, 14 Dec 2018 03:35:12 +0000 (-0500) Subject: Enable Smarty default HTML escaping X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d90d35d253dc3218ec5143120334248f0dce3de;p=friendica.git Enable Smarty default HTML escaping --- diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 8ecea05186..413d746dcf 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -42,6 +42,8 @@ class FriendicaSmarty extends Smarty $this->left_delimiter = Renderer::getTemplateLeftDelimiter('smarty3'); $this->right_delimiter = Renderer::getTemplateRightDelimiter('smarty3'); + $this->escape_html = true; + // Don't report errors so verbosely $this->error_reporting = E_ALL & ~E_NOTICE; }