Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 068105e

Browse filesBrowse files
bug #59033 [WebProfilerBundle] Fix interception for non conventional redirects (Huluti)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- [WebProfilerBundle] Fix interception for non conventional redirects | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 416aa0e [WebProfilerBundle] Fix interception for non conventional redirects
2 parents 818423e + 416aa0e commit 068105e
Copy full SHA for 068105e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function onKernelResponse(ResponseEvent $event): void
107107
return;
108108
}
109109

110-
if ($response->headers->has('X-Debug-Token') && $response->isRedirect() && $this->interceptRedirects && 'html' === $request->getRequestFormat()) {
110+
if ($response->headers->has('X-Debug-Token') && $response->isRedirect() && $this->interceptRedirects && 'html' === $request->getRequestFormat() && $response->headers->has('Location')) {
111111
if ($request->hasSession() && ($session = $request->getSession())->isStarted() && $session->getFlashBag() instanceof AutoExpireFlashBag) {
112112
// keep current flashes for one more request if using AutoExpireFlashBag
113113
$session->getFlashBag()->setAll($session->getFlashBag()->peekAll());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.