mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Encode urls in parts
This commit is contained in:
parent
78375780ed
commit
156d25d7f5
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ class NativeShare implements IShare {
|
||||||
$url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name);
|
$url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name);
|
||||||
if ($path) {
|
if ($path) {
|
||||||
$path = trim($path, '/');
|
$path = trim($path, '/');
|
||||||
$url .= '/' . rawurlencode($path);
|
$url .= '/';
|
||||||
|
$url .= implode('/', array_map('rawurlencode', explode('/', $path)));
|
||||||
}
|
}
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue