Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-04-14 18:53:15 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-04-18 12:21:28 +0300
commit250467e842a0856a84e9962ed6ef476a2e3ccfef (patch)
treea4e4707a0d689056bbb0dbfd553709fd820be55b /lib/private/AppFramework
parentf93d55eebd216e59f200da2bf46cd332bc17bedc (diff)
Extend tests for root url
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Routing/RouteConfig.php4
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;
}