Fix sharing of single files, target name was not correct
This commit is contained in:
parent
86c3761615
commit
01ce2babd1
|
@ -47,7 +47,7 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
|
|||
}
|
||||
|
||||
public function generateTarget($filePath, $shareWith, $exclude = null) {
|
||||
$target = $filePath;
|
||||
$target = '/'.basename($filePath);
|
||||
if (isset($exclude)) {
|
||||
if ($pos = strrpos($target, '.')) {
|
||||
$name = substr($target, 0, $pos);
|
||||
|
|
Loading…
Reference in New Issue