summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/webdav.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-08-18 11:34:56 +0200
committerRobin Appelman <icewind@owncloud.com>2013-08-18 11:34:56 +0200
commitd8c71ba734d95e954d4ff3af50a44b94f9f016ff (patch)
treec89cd494a618e621f9c8941bac52bfed15dbad4c /apps/files_external/lib/webdav.php
parent5c9aedac1b9e858e450ac0b1f009d8042206060b (diff)
parent12f4494de02457d51004ca6a82c1b2160189819f (diff)
downloadnextcloud-server-d8c71ba734d95e954d4ff3af50a44b94f9f016ff.tar.gz
nextcloud-server-d8c71ba734d95e954d4ff3af50a44b94f9f016ff.zip
merge master in storage-wrapper-quota
Diffstat (limited to 'apps/files_external/lib/webdav.php')
-rw-r--r--apps/files_external/lib/webdav.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 57ff3707d36..0ef7646ace7 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -173,6 +173,7 @@ class DAV extends \OC\Files\Storage\Common{
curl_setopt($curl, CURLOPT_USERPWD, $this->user.':'.$this->password);
curl_setopt($curl, CURLOPT_URL, $this->createBaseUri().$path);
curl_setopt($curl, CURLOPT_FILE, $fp);
+ curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_exec ($curl);
curl_close ($curl);