diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index d14eff4356..a5532b7bcc 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -995,7 +995,7 @@ private function _applyEscapeOption($str, $escape_option = 'noescape') return "escape({$str}, false)"; case 'auto': default: - return "(\$this->config->autoescape === 'on' ? escape({$str}, false) : {$str})"; + return "(\$this->config->autoescape === 'on' ? escape({$str}, false) : ({$str}))"; } }