diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-03-25 13:42:47 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-03-25 13:42:47 +0100 |
commit | c17f415356ef9a8145de6403cb40af203d6c574e (patch) | |
tree | 08b44f14d74b851557c8e0cd7d8cc6554b391b9e /lib/private/route | |
parent | 9e89ad07c64cba95093bc40a44daf54621275e15 (diff) | |
download | nextcloud-server-c17f415356ef9a8145de6403cb40af203d6c574e.tar.gz nextcloud-server-c17f415356ef9a8145de6403cb40af203d6c574e.zip |
Only load core routes for ocs and settings
Diffstat (limited to 'lib/private/route')
-rw-r--r-- | lib/private/route/router.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index a0e701d391a..8b2c9e72f20 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -178,9 +178,10 @@ class Router implements IRouter { */ public function match($url) { if (substr($url, 0, 6) === '/apps/') { + // empty string / 'apps' / $app / rest of the route list(, , $app,) = explode('/', $url, 4); $this->loadRoutes($app); - } else if(substr($url, 0, 6) === '/core/') { + } else if(substr($url, 0, 6) === '/core/' or substr($url, 0, 5) === '/ocs/' or substr($url, 0, 10) === '/settings/') { $this->loadRoutes('core'); } else { $this->loadRoutes(); |