mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Url encode path in the native share
This commit is contained in:
parent
65b76d6428
commit
dc13d50f06
2 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ 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 .= '/' . $path;
|
$url .= '/' . rawurlencode($path);
|
||||||
}
|
}
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ abstract class AbstractShare extends \PHPUnit_Framework_TestCase {
|
||||||
array('with spaces_and-underscores'),
|
array('with spaces_and-underscores'),
|
||||||
array("single'quote'"),
|
array("single'quote'"),
|
||||||
array('日本語'),
|
array('日本語'),
|
||||||
|
array('url %2F +encode'),
|
||||||
array('$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ')
|
array('$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue