From 5a6a8bdf94d810a79ce7f5eb8dc65f2371cc8e8e Mon Sep 17 00:00:00 2001 From: Florian Kaiser Date: Wed, 8 Aug 2018 10:03:40 +0200 Subject: [PATCH] FIX: Headers being sent twice in redirectToUriAndShutdown --- Classes/Controller/LoginController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Classes/Controller/LoginController.php b/Classes/Controller/LoginController.php index 0152036..1e92135 100644 --- a/Classes/Controller/LoginController.php +++ b/Classes/Controller/LoginController.php @@ -111,12 +111,9 @@ public function logoutAction() if (is_string($result)) { $this->redirectToUriAndShutdown($result); - } elseif ($result instanceof ActionRequest) { $this->redirectToRequest($result); - } - - if ($result === null) { + } else if ($result === null) { // Default: redirect to login $this->redirect('login'); } else { @@ -174,7 +171,6 @@ protected function redirectToUriAndShutdown(string $result) $response->setHeader('Status', '303'); $response->setContent(''); - $response->send(); $this->bootstrap->shutdown(Bootstrap::RUNLEVEL_RUNTIME); }