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)
This commit is contained in:
parent
f0c4356392
commit
550813ce41
|
@ -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…
Reference in New Issue