From f71771bd20d6baca3b091a6d4e9efde6192de61e Mon Sep 17 00:00:00 2001 From: omissis Date: Thu, 24 Feb 2011 12:00:56 -0800 Subject: [PATCH] appending the toolbar at the end of the content even in case no tag is found. I am assuming it is correct to show the toolbar regardless of the correctness of page's html. --- .../Bundle/WebProfilerBundle/WebDebugToolbarListener.php | 2 ++ 1 file changed, 2 insertions(+) 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); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy