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:
parent
24d2cbf3de
commit
65ebba44ce
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue