summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-11 20:32:44 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-11 20:32:44 +0100
commit392be7816261d4e7af33257b705b84d448a3bed8 (patch)
tree164a3079bb0daf65372bbbbce5b0735e6f739108
parent7776d047b2fa90529ed2bf053e47ff66ddd4818d (diff)
downloadnextcloud-server-392be7816261d4e7af33257b705b84d448a3bed8.tar.gz
nextcloud-server-392be7816261d4e7af33257b705b84d448a3bed8.zip
the path must be encoded because within the smb4pph code it's decoded again - pretty easy but still .....
-rw-r--r--apps/files_external/lib/smb.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 58abcd43f5a..e1070116642 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -45,6 +45,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
if (substr($path, -1)=='/') {
$path=substr($path, 0, -1);
}
+ $path = rawurlencode($path);
return 'smb://'.$this->user.':'.$this->password.'@'.$this->host.$this->share.$this->root.$path;
}