diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-03-31 17:00:32 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-03-31 17:00:32 +0200 |
commit | 76c63a576089edcd553244f02d8c3f6c28038fd2 (patch) | |
tree | ed0073d5e7b25db527c8992008875ba928094093 /apps/files_external/lib/webdav.php | |
parent | 65e3f634000a2142f412b85d0443f241bb64a9ab (diff) | |
download | nextcloud-server-76c63a576089edcd553244f02d8c3f6c28038fd2.tar.gz nextcloud-server-76c63a576089edcd553244f02d8c3f6c28038fd2.zip |
Fix uploading files containing a # in the path for webdav
Diffstat (limited to 'apps/files_external/lib/webdav.php')
-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)); |