From 99f20e612c1086333d8c767ed10d1d6ad39e4d22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 6 Jul 2021 11:29:44 +0200 Subject: [PATCH] Simplify extraction of abbreviation for evaluation check --- .../install/files/lib/system/request/RequestHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 3c4df6b51e..147a9a9f21 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -211,7 +211,7 @@ class RequestHandler extends SingletonFactory ); // check if the controller matches an app that has an expired evaluation date - $abbreviation = \mb_substr($classData['className'], 0, \mb_strpos($classData['className'], '\\')); + [$abbreviation] = \explode('\\', $classData['className'], 2); if ($abbreviation !== 'wcf') { $applicationObject = ApplicationHandler::getInstance()->getApplication($abbreviation); $endDate = WCF::getApplicationObject($applicationObject)->getEvaluationEndDate(); -- 2.20.1