From 35cbcf06085e13cfacbca935b7b7c1fa3f8ed2a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 Aug 2021 15:29:44 +0200 Subject: [PATCH] Use PSR-7 responses in FullLogoutAction --- .../files/lib/acp/action/FullLogoutAction.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php b/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php index 7731e2902d..655b97b19e 100644 --- a/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php @@ -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() + ); } } -- 2.20.1