summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-08-14 17:11:30 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-08-14 17:11:30 -0700
commitde89c31f5a63f399151093aa8e29715e7be24e82 (patch)
tree4d6e48beb1b95a03cdedf3447917c2e4f97ea4b4
parent75e9015b5445e957f2454373bed67dac1741b5cb (diff)
parent72ad843203f4bb2d0f88c9b85b424198d7fd28a8 (diff)
downloadnextcloud-server-de89c31f5a63f399151093aa8e29715e7be24e82.tar.gz
nextcloud-server-de89c31f5a63f399151093aa8e29715e7be24e82.zip
Merge pull request #4302 from synchrone/master
Fixing owncloud/core#4301
-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 4869322d87a..f98be318f1c 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);