diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-14 17:53:15 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:21:28 +0200 |
commit | 250467e842a0856a84e9962ed6ef476a2e3ccfef (patch) | |
tree | a4e4707a0d689056bbb0dbfd553709fd820be55b /lib | |
parent | f93d55eebd216e59f200da2bf46cd332bc17bedc (diff) | |
download | nextcloud-server-250467e842a0856a84e9962ed6ef476a2e3ccfef.tar.gz nextcloud-server-250467e842a0856a84e9962ed6ef476a2e3ccfef.zip |
Extend tests for root url
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Routing/RouteConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Routing/RouteConfig.php b/lib/private/AppFramework/Routing/RouteConfig.php index af745a35fcc..2f2d51f6e1a 100644 --- a/lib/private/AppFramework/Routing/RouteConfig.php +++ b/lib/private/AppFramework/Routing/RouteConfig.php @@ -55,7 +55,7 @@ class RouteConfig { /** @var string[] */ private $controllerNameCache = []; - public const ROOT_URL_APPS = [ + protected $rootUrlApps = [ 'cloud_federation_api', 'core', 'files_sharing', @@ -126,7 +126,7 @@ class RouteConfig { $postfix = $route['postfix'] ?? ''; $defaultRoot = $this->appName === 'core' ? '' : '/apps/' . $this->appName; $root = $route['root'] ?? $defaultRoot; - if ($routeNamePrefix === '' && !\in_array($this->appName, self::ROOT_URL_APPS, true)) { + if ($routeNamePrefix === '' && !\in_array($this->appName, $this->rootUrlApps, true)) { // Only allow root URLS for some apps $root = $defaultRoot; } |