Simplify extraction of abbreviation for evaluation check
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Jul 2021 09:29:44 +0000 (11:29 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Jul 2021 09:29:44 +0000 (11:29 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 3c4df6b51ed271048c16284341333c145ee8f32d..147a9a9f214eb7a234831248de730836f0786f7a 100644 (file)
@@ -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();