]> git.mxchange.org Git - friendica.git/commitdiff
Enable Smarty default HTML escaping
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 14 Dec 2018 03:35:12 +0000 (22:35 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 17 Dec 2018 03:38:30 +0000 (22:38 -0500)
src/Render/FriendicaSmarty.php

index 8ecea05186fbbbf3e3e2beb0bcc69fc127e11ffa..413d746dcfce3620eabc87ddb0af38b8e8eb1285 100644 (file)
@@ -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;
        }