Merge pull request #1654 from owncloud/fixing-1652-master
user name and password need to be encoded as well
This commit is contained in:
commit
0f13da409b
|
@ -46,7 +46,9 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
|
||||||
$path=substr($path, 0, -1);
|
$path=substr($path, 0, -1);
|
||||||
}
|
}
|
||||||
$path = urlencode($path);
|
$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) {
|
public function stat($path) {
|
||||||
|
|
Loading…
Reference in New Issue