Enable Smarty default HTML escaping

pull/6262/head
Hypolite Petovan 2018-12-13 22:35:12 -05:00
parent 38109665c7
commit 6d90d35d25
1 changed files with 2 additions and 0 deletions

View 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;
}