]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't use the complete path but the basename if the file/foder has no extension....
authorBjörn Schießle <schiessle@owncloud.com>
Tue, 2 Oct 2012 09:28:19 +0000 (11:28 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 2 Oct 2012 09:41:26 +0000 (11:41 +0200)
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

index 074ca9928d471e1cf1266cb7f22ddb7c46c56f7d..9a88050592638f3a23630b5ae3bb85c7a3db66dd 100644 (file)
@@ -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;