diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-12 08:36:24 -0800 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-12 08:36:24 -0800 |
commit | 0f13da409bbe5cdf2fcfa26ff71b2287d3e57822 (patch) | |
tree | 2a3927241892b43f97077e7601800b54c05c0b20 | |
parent | 251b676a06a1fc5d0e2606865d8794c749aed3c3 (diff) | |
parent | 318c0b34080ed7f15c0e5c4d1dba129c588eaab2 (diff) | |
download | nextcloud-server-0f13da409bbe5cdf2fcfa26ff71b2287d3e57822.tar.gz nextcloud-server-0f13da409bbe5cdf2fcfa26ff71b2287d3e57822.zip |
Merge pull request #1654 from owncloud/fixing-1652-master
user name and password need to be encoded as well
-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) { |