summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-06 11:01:12 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-06 11:01:12 +0200
commit9a10efd80f237255e3fcd44fe28eb5330aa7dfcb (patch)
treee76980ebe746cee323c26b19e2b93aa33d65a9d6 /3rdparty
parentaa95cf2c9866d3975d2e27d83c05e5a1c675efee (diff)
parenta5a1d929ca2e75332f20f0cafc0711aa0f0608fb (diff)
downloadnextcloud-server-9a10efd80f237255e3fcd44fe28eb5330aa7dfcb.tar.gz
nextcloud-server-9a10efd80f237255e3fcd44fe28eb5330aa7dfcb.zip
Merge branch 'master' into calendar_import
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/Sabre/DAV/Client.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/3rdparty/Sabre/DAV/Client.php b/3rdparty/Sabre/DAV/Client.php
index 23bd7c05394..d257c86da10 100644
--- a/3rdparty/Sabre/DAV/Client.php
+++ b/3rdparty/Sabre/DAV/Client.php
@@ -22,6 +22,7 @@ class Sabre_DAV_Client {
protected $userName;
protected $password;
protected $proxy;
+ protected $capath;
/**
* Constructor
@@ -49,6 +50,11 @@ class Sabre_DAV_Client {
'proxy'
);
+ $this->capath = '';
+ if (isset($settings['capath'])) {
+ $this->capath = $settings['capath'];
+ }
+
foreach($validSettings as $validSetting) {
if (isset($settings[$validSetting])) {
$this->$validSetting = $settings[$validSetting];
@@ -249,9 +255,12 @@ class Sabre_DAV_Client {
// Automatically follow redirects
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_MAXREDIRS => 5,
+ CURLOPT_SSL_VERIFYPEER => true,
//CURLOPT_SSL_VERIFYPEER => false,
);
+ if ($this->capath != '') $curlSettings[CURLOPT_CAPATH] = $this->capath;
+
switch ($method) {
case 'PUT':
$curlSettings[CURLOPT_PUT] = true;