Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
dc362823
Commit
dc362823
authored
May 12, 2015
by
Morris Jobke
Browse files
Merge pull request #16269 from owncloud/master-fix-16179
Check if cURL supports the desired features
parents
d4eff553
4613456a
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/private/files/storage/dav.php
View file @
dc362823
...
...
@@ -346,8 +346,12 @@ class DAV extends Common {
curl_setopt
(
$curl
,
CURLOPT_URL
,
$this
->
createBaseUri
()
.
$this
->
encodePath
(
$path
));
curl_setopt
(
$curl
,
CURLOPT_FILE
,
$fp
);
curl_setopt
(
$curl
,
CURLOPT_FOLLOWLOCATION
,
true
);
if
(
defined
(
'CURLOPT_PROTOCOLS'
))
{
curl_setopt
(
$curl
,
CURLOPT_PROTOCOLS
,
CURLPROTO_HTTP
|
CURLPROTO_HTTPS
);
}
if
(
defined
(
'CURLOPT_REDIR_PROTOCOLS'
))
{
curl_setopt
(
$curl
,
CURLOPT_REDIR_PROTOCOLS
,
CURLPROTO_HTTP
|
CURLPROTO_HTTPS
);
}
if
(
$this
->
secure
===
true
)
{
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYPEER
,
true
);
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYHOST
,
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment