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 the user logout in the admin control panel (clearing reauthentication).
$this->executed();
- HeaderUtil::redirect(LinkHandler::getInstance()->getLink(null, [
- 'forceFrontend' => true,
- ]));
-
- exit;
+ return new RedirectResponse(
+ LinkHandler::getInstance()->getLink(null, [
+ 'forceFrontend' => true,
+ ])
+ );
}
}
namespace wcf\action;
+use Laminas\Diactoros\Response\RedirectResponse;
use wcf\system\request\LinkHandler;
use wcf\system\WCF;
-use wcf\util\HeaderUtil;
/**
* Does the user logout.
$this->executed();
- // forward to index page
- HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
-
- exit;
+ return new RedirectResponse(
+ LinkHandler::getInstance()->getLink()
+ );
}
}