user name and password need to be encoded as well

fixes #1652
This commit is contained in:
Thomas Mueller 2013-02-12 15:56:31 +01:00
parent 8d9352a40d
commit 318c0b3408
1 changed files with 3 additions and 1 deletions

View File

@ -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) {