Skip to content

Commit

Permalink
[WebProfilerBundle] hmmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 11, 2011
1 parent 92acd46 commit e0b46fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -128,7 +128,7 @@ public function toolbarAction($token, $position = null)
$request = $this->container->get('request');

// keep current flashes for one more request
$request->setFlashes($request->getFlashes());
$request->getSession()->setFlashes($request->getSession()->getFlashes());

if (null === $token) {
return new Response();
Expand Down
Expand Up @@ -50,7 +50,7 @@ public function handle(EventInterface $event, Response $response)
$request = $event->get('request');
if ($response->headers->has('X-Debug-Token') && $response->isRedirect() && $this->interceptRedirects) {
// keep current flashes for one more request
$request->setFlashes($request->getFlashes());
$request->getSession()->setFlashes($request->getSession()->getFlashes());

$response->setContent(
sprintf('<html><head></head><body><h1>This Request redirects to<br /><a href="%1$s">%1$s</a>.</h1><h4>The redirect was intercepted by the web debug toolbar to help debugging.<br/>For more information, see the "intercept-redirects" option of the Profiler.</h4></body></html>',
Expand Down

0 comments on commit e0b46fe

Please sign in to comment.