From 550813ce411daa5f3665f9e8a4cec111d04ff486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 2 Oct 2012 11:28:19 +0200 Subject: [PATCH] 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(-) diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index 074ca9928d..9a88050592 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;