summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/smb.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 15:56:31 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 15:56:31 +0100
commit318c0b34080ed7f15c0e5c4d1dba129c588eaab2 (patch)
treefa20c0ca775e596dccbdf112ecf3a122f352f55e /apps/files_external/lib/smb.php
parent8d9352a40d6b02e17889ba02962e0a3880e0995e (diff)
downloadnextcloud-server-318c0b34080ed7f15c0e5c4d1dba129c588eaab2.tar.gz
nextcloud-server-318c0b34080ed7f15c0e5c4d1dba129c588eaab2.zip
user name and password need to be encoded as well
fixes #1652
Diffstat (limited to 'apps/files_external/lib/smb.php')
-rw-r--r--apps/files_external/lib/smb.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index e17ce1168dc..ffba0d000ca 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -46,7 +46,9 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
$path=substr($path, 0, -1);
}
$path = urlencode($path);
- return 'smb://'.$this->user.':'.$this->password.'@'.$this->host.$this->share.$this->root.$path;
+ $user = urlencode($this->user);
+ $pass = urlencode($this->password);
+ return 'smb://'.$user.':'.$pass.'@'.$this->host.$this->share.$this->root.$path;
}
public function stat($path) {