diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-12 15:56:31 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-12 15:56:31 +0100 |
commit | 318c0b34080ed7f15c0e5c4d1dba129c588eaab2 (patch) | |
tree | fa20c0ca775e596dccbdf112ecf3a122f352f55e | |
parent | 8d9352a40d6b02e17889ba02962e0a3880e0995e (diff) | |
download | nextcloud-server-318c0b34080ed7f15c0e5c4d1dba129c588eaab2.tar.gz nextcloud-server-318c0b34080ed7f15c0e5c4d1dba129c588eaab2.zip |
user name and password need to be encoded as well
fixes #1652
-rw-r--r-- | apps/files_external/lib/smb.php | 4 |
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) { |