From 65ebba44cef19713ab31c77841706c31b1475e0b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 14 Sep 2015 20:55:53 +0200 Subject: [PATCH] Allow /tests folder in autoloader by default Given the fact that "/tests" is not shipped by default and this has broken some applications and frustrated quite some people we should add "/tests" to the default allowed autoloading set. I do consider the security impact marginally since the /tests folder is not shipped within the release as well as usually has a hard requirement on being called by phpunit. --- lib/base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 5f8a7ed0f1..fcb3ff0b56 100644 --- a/lib/base.php +++ b/lib/base.php @@ -528,7 +528,8 @@ class OC { OC::$SERVERROOT . '/settings', OC::$SERVERROOT . '/ocs', OC::$SERVERROOT . '/ocs-provider', - OC::$SERVERROOT . '/3rdparty' + OC::$SERVERROOT . '/3rdparty', + OC::$SERVERROOT . '/tests', ]); spl_autoload_register(array(self::$loader, 'load')); $loaderEnd = microtime(true);