summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-03 16:09:44 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-03 16:09:44 +0200
commita2efdb87223fcaf7ee20ebfe8df4fae645d95a3e (patch)
tree7b59c6f63e22cf70aadc59dd3e6ba22a8edbd8a9 /apps/files_external
parent54783550e8736e0507be05fdc8711d8b30218d72 (diff)
parent76c63a576089edcd553244f02d8c3f6c28038fd2 (diff)
downloadnextcloud-server-a2efdb87223fcaf7ee20ebfe8df4fae645d95a3e.tar.gz
nextcloud-server-a2efdb87223fcaf7ee20ebfe8df4fae645d95a3e.zip
Merge pull request #7970 from owncloud/webdav-upload-hash
Fix uploading files containing a # in the path for webdav
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/webdav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 279ae716935..f5010f92208 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -267,7 +267,7 @@ class DAV extends \OC\Files\Storage\Common {
$curl = curl_init();
curl_setopt($curl, CURLOPT_USERPWD, $this->user . ':' . $this->password);
- curl_setopt($curl, CURLOPT_URL, $this->createBaseUri() . str_replace(' ', '%20', $target));
+ curl_setopt($curl, CURLOPT_URL, $this->createBaseUri() . $this->encodePath($target));
curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
curl_setopt($curl, CURLOPT_INFILE, $source); // file pointer
curl_setopt($curl, CURLOPT_INFILESIZE, filesize($path));