make path encoding compatible with smb2 and smb3

This commit is contained in:
Robin Appelman 2017-08-17 16:03:12 +02:00
commit f1e17ba6e2

View file

@ -413,6 +413,7 @@ class Share extends AbstractShare {
}
$path = str_replace('/', '\\', $path);
$path = str_replace('"', '^"', $path);
$path = ltrim($path, '\\');
return '"' . $path . '"';
}