diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-02 11:28:19 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-02 11:41:26 +0200 |
commit | 550813ce411daa5f3665f9e8a4cec111d04ff486 (patch) | |
tree | 89be7e2feaa08c8ab0223f135b9f3ef530a94b8c /apps | |
parent | f0c4356392a7ab9998eb10a99743767c77323156 (diff) | |
download | nextcloud-server-550813ce411daa5f3665f9e8a4cec111d04ff486.tar.gz nextcloud-server-550813ce411daa5f3665f9e8a4cec111d04ff486.zip |
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)
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 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; |