diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-06 12:24:03 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-06 12:24:03 +0200 |
commit | 8353517969d4256a86c1085cb3c3804f08a14001 (patch) | |
tree | 23da4e2325c9e262923026c3c682371d36333faa /apps/files_external/lib/webdav.php | |
parent | a5a1d929ca2e75332f20f0cafc0711aa0f0608fb (diff) | |
download | nextcloud-server-8353517969d4256a86c1085cb3c3804f08a14001.tar.gz nextcloud-server-8353517969d4256a86c1085cb3c3804f08a14001.zip |
use OC_Connector_Sabre_Client
Diffstat (limited to 'apps/files_external/lib/webdav.php')
-rw-r--r-- | apps/files_external/lib/webdav.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index 32dd26ae6c3..7511096f0d9 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -36,18 +36,18 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{ $this->root.='/'; } - $capath = ''; - if($caview = \OCP\Files::getStorage('files_external')) {
- $capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath(""); - } $settings = array( 'baseUri' => $this->createBaseUri(), 'userName' => $this->user, 'password' => $this->password, - 'capath' => $capath, ); - $this->client = new Sabre_DAV_Client($settings); + $this->client = new OC_Connector_Sabre_Client($settings); + + if($caview = \OCP\Files::getStorage('files_external')) { + $this->client->setCurlSettings(array(CURLOPT_CAPATH => \OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath(""), + CURLOPT_SSL_VERIFYPEER => false)); + } //create the root folder if necesary $this->mkdir(''); } |