Skip to content
Snippets Groups Projects
Commit 0f13da40 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #1654 from owncloud/fixing-1652-master

user name and password need to be encoded as well
parents 251b676a 318c0b34
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment