From 318c0b34080ed7f15c0e5c4d1dba129c588eaab2 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 12 Feb 2013 15:56:31 +0100 Subject: [PATCH] user name and password need to be encoded as well fixes #1652 --- apps/files_external/lib/smb.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index e17ce1168d..ffba0d000c 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) {