diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-09 09:40:33 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-09 09:40:33 +0200 |
commit | 7d41d3aba8650d5bb7f5ec68721f645e91f5d52b (patch) | |
tree | dfbc8ca46eee239740055a5b635e7d85ca226f65 /apps | |
parent | f5c329af981f59f78c12648ea41c258f477f3e82 (diff) | |
download | nextcloud-server-7d41d3aba8650d5bb7f5ec68721f645e91f5d52b.tar.gz nextcloud-server-7d41d3aba8650d5bb7f5ec68721f645e91f5d52b.zip |
webdav ssl cleanup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/webdav.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index ea6ca65b976..b30e121f99b 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -43,10 +43,13 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{ ); $this->client = new OC_Connector_Sabre_Client($settings); - + /* if($caview = \OCP\Files::getStorage('files_external')) { - $this->client->setCurlSettings(array(CURLOPT_CAINFO => \OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("").'rootcerts.crt')); - } + $certPath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("").'rootcerts.crt'; + if (file_exists($certPath)) { + $this->client->addTrustedCertificates($certPath); + } + }*/ //create the root folder if necesary $this->mkdir(''); } |