[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;
|
++$this->level;
|
||||||
|
|
||||||
// escape only once
|
list(, $options) = $this->splitTemplateName($name);
|
||||||
if (1 === $this->level && !isset($parameters['_data'])) {
|
if ('php' === $options['renderer'])
|
||||||
$parameters = $this->escapeParameters($parameters);
|
{
|
||||||
|
// escape only once
|
||||||
|
if (1 === $this->level && !isset($parameters['_data'])) {
|
||||||
|
$parameters = $this->escapeParameters($parameters);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = parent::render($name, $parameters);
|
$content = parent::render($name, $parameters);
|
||||||
|
Reference in New Issue
Block a user