[Templating] enabled escaping only when the renderer is php
This commit is contained in:
parent
f11d539420
commit
d7c83571ff
|
@ -64,9 +64,13 @@ class Engine extends BaseEngine
|
|||
{
|
||||
++$this->level;
|
||||
|
||||
// escape only once
|
||||
if (1 === $this->level && !isset($parameters['_data'])) {
|
||||
$parameters = $this->escapeParameters($parameters);
|
||||
list(, $options) = $this->splitTemplateName($name);
|
||||
if ('php' === $options['renderer'])
|
||||
{
|
||||
// escape only once
|
||||
if (1 === $this->level && !isset($parameters['_data'])) {
|
||||
$parameters = $this->escapeParameters($parameters);
|
||||
}
|
||||
}
|
||||
|
||||
$content = parent::render($name, $parameters);
|
||||
|
|
Reference in New Issue