From: Tim Düsterhus Date: Tue, 10 Aug 2021 14:12:31 +0000 (+0200) Subject: Use PSR-7 responses in NotificationConfirmAction X-Git-Tag: 5.5.0_Alpha_1~493^2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee48dac941e31a9980d3ec1d826d40205d32e670;p=GitHub%2FWoltLab%2FWCF.git Use PSR-7 responses in NotificationConfirmAction --- diff --git a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php index 8fcd897bb4..16a4b02f58 100644 --- a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php @@ -2,6 +2,7 @@ namespace wcf\action; +use Laminas\Diactoros\Response\RedirectResponse; use wcf\data\object\type\ObjectTypeCache; use wcf\data\user\notification\event\UserNotificationEvent; use wcf\data\user\notification\UserNotification; @@ -12,7 +13,6 @@ use wcf\system\exception\PermissionDeniedException; use wcf\system\user\notification\event\IUserNotificationEvent; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; -use wcf\util\HeaderUtil; /** * Marks target notification as confirmed and forwards to the notification URL. @@ -98,8 +98,8 @@ class NotificationConfirmAction extends AbstractAction $this->notification->additionalData ); - HeaderUtil::redirect($notificationEvent->getLink()); - - exit; + return new RedirectResponse( + $notificationEvent->getLink() + ); } }