diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-19 20:52:43 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-19 21:29:16 +0200 |
commit | 01ce2babd1aef043418b60689470fb5d1531ce3f (patch) | |
tree | a30b0d83c9b689a9919e3944924b871ad3594f08 /apps | |
parent | 86c3761615d56517f8bea867bdaf0ca59c386329 (diff) | |
download | nextcloud-server-01ce2babd1aef043418b60689470fb5d1531ce3f.tar.gz nextcloud-server-01ce2babd1aef043418b60689470fb5d1531ce3f.zip |
Fix sharing of single files, target name was not correct
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/share/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |