diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-14 20:55:53 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-15 11:32:07 +0200 |
commit | 65ebba44cef19713ab31c77841706c31b1475e0b (patch) | |
tree | eeaa9867ad1a6e5174335792687d3361b3df97e5 /lib/base.php | |
parent | 24d2cbf3de49dab44978061b33d0580d24d89d58 (diff) | |
download | nextcloud-server-65ebba44cef19713ab31c77841706c31b1475e0b.tar.gz nextcloud-server-65ebba44cef19713ab31c77841706c31b1475e0b.zip |
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.
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 5f8a7ed0f19..fcb3ff0b561 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); |