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)
remotes/origin/stable45
Björn Schießle 14 years ago
parent f0c4356392
commit 550813ce41
  1. 2
      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;

Loading…
Cancel
Save