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

index 58a0beedc50efee21e1d8c7fb0b3ee73ed3f98f8..11cc02e6da17021fd50309c48a1b625ad6fba999 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace wcf\acp\action;
 
+use Laminas\Diactoros\Response\RedirectResponse;
 use wcf\action\AbstractAction;
 use wcf\data\search\SearchEditor;
 use wcf\data\user\User;
@@ -10,7 +11,6 @@ use wcf\system\exception\NamedUserException;
 use wcf\system\menu\acp\ACPMenu;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
-use wcf\util\HeaderUtil;
 
 /**
  * Provides special search options.
@@ -203,8 +203,9 @@ class UserQuickSearchAction extends AbstractAction
             ['id' => $search->searchID],
             'sortField=' . \rawurlencode($this->sortField) . '&sortOrder=' . \rawurlencode($this->sortOrder)
         );
-        HeaderUtil::redirect($url);
 
-        exit;
+        return new RedirectResponse(
+            $url
+        );
     }
 }