From e91cf91a30f254a2746a5cb1d7e271e39f94f2e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 6 Jul 2021 12:04:55 +0200 Subject: [PATCH] Simplify extraction of abbreviation for active application check --- .../files/lib/system/application/ApplicationHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 323ec40b98..ecb4c514f2 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -135,7 +135,7 @@ class ApplicationHandler extends SingletonFactory $request = RequestHandler::getInstance()->getActiveRequest(); if ($request !== null) { - $abbreviation = \substr($request->getClassName(), 0, \mb_strpos($request->getClassName(), '\\')); + [$abbreviation] = \explode('\\', $request->getClassName(), 2); return $this->getApplication($abbreviation); } -- 2.20.1