From 4c5e05f37eaa8b3ee474ab20630a1780b41d4560 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 12 Apr 2024 10:18:09 +0200 Subject: [PATCH] fix(Router): Stop loading routes of disabled apps Signed-off-by: provokateurin --- lib/private/Route/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index 90a6d85d8b58e..ab277f129ed13 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -154,7 +154,7 @@ public function loadRoutes($app = null) { } $this->eventLogger->start('route:load:' . $requestedApp, 'Loading Routes for ' . $requestedApp); - if ($requestedApp !== null) { + if ($requestedApp !== null && in_array($requestedApp, \OC_App::getEnabledApps())) { $routes = $this->getAttributeRoutes($requestedApp); if (count($routes) > 0) { $this->useCollection($requestedApp);