summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-19 20:52:43 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-19 21:29:16 +0200
commit01ce2babd1aef043418b60689470fb5d1531ce3f (patch)
treea30b0d83c9b689a9919e3944924b871ad3594f08 /apps
parent86c3761615d56517f8bea867bdaf0ca59c386329 (diff)
downloadnextcloud-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.php2
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);