From 9b10c8a86652d50e4b3e38dc5dd8ca14ffb5619c Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 3 Jan 2011 20:20:44 -0600 Subject: [PATCH] [WebProfileBundle] Adding more information to the Response content returned when an intercept is redirected. Since this is a debug-only feature, I think the more details we can include, the less trouble it'll cause when people are not expecting their requests to be intercepted. It's a good feature - this better-communicates what's happening. --- .../Bundle/WebProfilerBundle/WebDebugToolbarListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php index 2f8c69aafd..873f1cc104 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php +++ b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php @@ -53,7 +53,7 @@ class WebDebugToolbarListener if ($response->headers->has('X-Debug-Token') && $response->isRedirect() && $this->interceptRedirects) { $response->setContent( - sprintf('

This Request redirects to
%s.

', + sprintf('

This Request redirects to
%s.

The redirect was intercepted by the web debug toolbar to help debugging.
For more information, see the "intercept-redirects" option of the Profiler.

', $response->headers->get('location'), $response->headers->get('location')) ); $response->setStatusCode(200);