Do not use RequestHandler::redirect() for controller-less ACP requests
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 30 May 2022 15:07:38 +0000 (17:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 30 May 2022 15:07:38 +0000 (17:07 +0200)
Specifically do not pass the unknown `$routeData` which might not be correct
for the IndexPage of `wcf`.

see ed55fc721676e3a5b7cf52995c2f2701a4902f1e

wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index a15451c7d4ca6194f85f0b41d76a9993ad5b6f6a..d65337c9a0dd585731d4db63055d9a6a9856437b 100644 (file)
@@ -123,7 +123,9 @@ final class RequestHandler extends SingletonFactory
                     $routeData['controller'] = 'index';
 
                     if ($application !== 'wcf') {
-                        $this->redirect($routeData, 'wcf', 'index');
+                        HeaderUtil::redirect(LinkHandler::getInstance()->getLink(), true, false);
+
+                        exit;
                     }
                 }
             } else {