Fix sharing of single files, target name was not correct

remotes/origin/stable45
Bart Visscher 14 years ago
parent 86c3761615
commit 01ce2babd1
  1. 2
      apps/files_sharing/lib/share/file.php

@ -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…
Cancel
Save