Url encode path in the native share

This commit is contained in:
Robin Appelman 2014-08-24 13:25:25 +02:00
commit dc13d50f06
2 changed files with 2 additions and 1 deletions

View file

@ -64,7 +64,7 @@ class NativeShare implements IShare {
$url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name);
if ($path) {
$path = trim($path, '/');
$url .= '/' . $path;
$url .= '/' . rawurlencode($path);
}
return $url;
}

View file

@ -43,6 +43,7 @@ abstract class AbstractShare extends \PHPUnit_Framework_TestCase {
array('with spaces_and-underscores'),
array("single'quote'"),
array('日本語'),
array('url %2F +encode'),
array('$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ')
);
}