From: Tim Düsterhus Date: Tue, 6 Jul 2021 09:29:44 +0000 (+0200) Subject: Simplify extraction of abbreviation for evaluation check X-Git-Tag: 5.5.0_Alpha_1~560 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99f20e612c1086333d8c767ed10d1d6ad39e4d22;p=GitHub%2FWoltLab%2FWCF.git Simplify extraction of abbreviation for evaluation check --- 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();