mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-26 21:55:57 +00:00
fixed partial output leak when a PHP fatal error occurs
This commit is contained in:
@@ -31,7 +31,7 @@ class SpacelessNode extends Node
|
||||
{
|
||||
$compiler
|
||||
->addDebugInfo($this)
|
||||
->write("ob_start();\n")
|
||||
->write("ob_start(function () { return ''; });\n")
|
||||
->subcompile($this->getNode('body'))
|
||||
->write("echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));\n")
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user