mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-29 15:15:27 +00:00
added the source for all sandbox security exceptions
This commit is contained in:
@@ -36,7 +36,7 @@ class CheckToStringNode extends AbstractExpression
|
||||
$compiler
|
||||
->raw('$this->sandbox->ensureToStringAllowed(')
|
||||
->subcompile($this->getNode('expr'))
|
||||
->raw(')')
|
||||
->raw(', $this->source)')
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user