From 550813ce411daa5f3665f9e8a4cec111d04ff486 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Tue, 2 Oct 2012 11:28:19 +0200 Subject: don't use the complete path but the basename if the file/foder has no extension. Otherwise we can end up with different items in the shared directory with the same name (Also folder names can contain dots) --- apps/files_sharing/lib/share/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing') diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index 074ca9928d4..9a880505926 100644 --- a/apps/files_sharing/lib/share/file.php +++ b/apps/files_sharing/lib/share/file.php @@ -53,7 +53,7 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { $name = substr($target, 0, $pos); $ext = substr($target, $pos); } else { - $name = $filePath; + $name = $target; $ext = ''; } $i = 2; -- cgit v1.2.3