diff --git a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php index 46360ebd0a4cd..152ef68afa684 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php +++ b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php @@ -91,6 +91,8 @@ protected function injectToolbar(Response $response) if (false !== $pos = $posrFunction($content, '')) { $content = $substrFunction($content, 0, $pos).$toolbar.$substrFunction($content, $pos); + } else { + $content .= $toolbar; } $response->setContent($content);