Fix sharing of single files, target name was not correct

This commit is contained in:
Bart Visscher 2012-09-19 20:52:43 +02:00
parent 86c3761615
commit 01ce2babd1
1 changed files with 1 additions and 1 deletions

View File

@ -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);