From c9ad60defc7961a83e14c1a5518db5e26caeff1f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 19 May 2016 15:32:20 +0200 Subject: [PATCH] Only allow loading of legacy (lib/private/legacy) by default --- lib/base.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/base.php b/lib/base.php index eddcec97b1..391bcf865a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -481,11 +481,7 @@ class OC { $loaderStart = microtime(true); require_once __DIR__ . '/autoloader.php'; self::$loader = new \OC\Autoloader([ - OC::$SERVERROOT . '/lib', - OC::$SERVERROOT . '/core', - OC::$SERVERROOT . '/settings', - OC::$SERVERROOT . '/ocs', - OC::$SERVERROOT . '/ocs-provider', + OC::$SERVERROOT . '/lib/private/legacy', ]); if (defined('PHPUNIT_RUN')) { self::$loader->addValidRoot(OC::$SERVERROOT . '/tests');