Use PSR-7 responses in FullLogoutAction
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 6 Aug 2021 13:29:44 +0000 (15:29 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 Aug 2021 14:29:52 +0000 (16:29 +0200)
wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php

index 7731e2902d16e48392ad3cd10c9dca7fc50658c1..655b97b19e51fb59c7f597050efe26aad35a5f6c 100644 (file)
@@ -2,10 +2,10 @@
 
 namespace wcf\acp\action;
 
+use Laminas\Diactoros\Response\RedirectResponse;
 use wcf\action\AbstractSecureAction;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
-use wcf\util\HeaderUtil;
 
 /**
  * Does a full user logout in the admin control panel (deleting the session).
@@ -28,8 +28,8 @@ class FullLogoutAction extends LogoutAction
 
         $this->executed();
 
-        HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
-
-        exit;
+        return new RedirectResponse(
+            LinkHandler::getInstance()->getLink()
+        );
     }
 }