From 01ce2babd1aef043418b60689470fb5d1531ce3f Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 19 Sep 2012 20:52:43 +0200 Subject: [PATCH] Fix sharing of single files, target name was not correct --- apps/files_sharing/lib/share/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index 2149da1d731..b120cc167f3 100644 --- a/apps/files_sharing/lib/share/file.php +++ b/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);