From: Thomas Mueller Date: Tue, 12 Feb 2013 14:56:31 +0000 (+0100) Subject: user name and password need to be encoded as well X-Git-Tag: v5.0.0alpha1~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=318c0b34080ed7f15c0e5c4d1dba129c588eaab2;p=nextcloud-server.git user name and password need to be encoded as well fixes #1652 --- 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) {