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:
Björn Schießle 2012-10-02 11:28:19 +02:00
parent f0c4356392
commit 550813ce41
1 changed files with 1 additions and 1 deletions

View 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;