diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-03 16:09:44 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-03 16:09:44 +0200 |
commit | a2efdb87223fcaf7ee20ebfe8df4fae645d95a3e (patch) | |
tree | 7b59c6f63e22cf70aadc59dd3e6ba22a8edbd8a9 /apps/files_external | |
parent | 54783550e8736e0507be05fdc8711d8b30218d72 (diff) | |
parent | 76c63a576089edcd553244f02d8c3f6c28038fd2 (diff) | |
download | nextcloud-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.php | 2 |
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)); |