summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-20 13:21:34 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-20 13:21:34 +0100
commit1e4e0cfcd5ddbcb09a17a03d7525d8f3b8ce002f (patch)
tree4533169e1bd7f92a9f3029a74ac4837ba263f45d /apps/files_external/lib/config.php
parentcf23defa5274fdd7d73d7ca3b68c7e366f8f0706 (diff)
downloadnextcloud-server-1e4e0cfcd5ddbcb09a17a03d7525d8f3b8ce002f.tar.gz
nextcloud-server-1e4e0cfcd5ddbcb09a17a03d7525d8f3b8ce002f.zip
Lazy load phpseclib in ext storage config
Diffstat (limited to 'apps/files_external/lib/config.php')
-rwxr-xr-xapps/files_external/lib/config.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index dbb12ecd9bb..f13b25b2e28 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -24,7 +24,6 @@ set_include_path(
get_include_path() . PATH_SEPARATOR .
\OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib'
);
-include('Crypt/AES.php');
/**
* Class to configure mount.json globally and for users
@@ -703,6 +702,9 @@ class OC_Mount_Config {
private static function getCipher() {
// note: not caching this to make it thread safe as we'll use
// a different IV for each password
+ if (!class_exists('Crypt_AES', false)) {
+ include('Crypt/AES.php');
+ }
$cipher = new Crypt_AES(CRYPT_AES_MODE_CBC);
$cipher->setKey(\OCP\Config::getSystemValue('passwordsalt'));
return $cipher;