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.
This commit is contained in:
Lukas Reschke 2015-09-14 20:55:53 +02:00
parent 24d2cbf3de
commit 65ebba44ce
1 changed files with 2 additions and 1 deletions

View File

@ -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);