only create complete share key if we know the exact path

This commit is contained in:
Bjoern Schiessle 2013-11-26 13:30:59 +01:00
parent f8fcd567a7
commit 5d2299eab8
1 changed files with 3 additions and 1 deletions

View File

@ -502,7 +502,6 @@ class Trashbin {
if ($timestamp) {
$keyfile .= '.d' . $timestamp;
$sharekey .= '.d' . $timestamp;
}
// disable proxy to prevent recursive calls
@ -518,6 +517,9 @@ class Trashbin {
$rootView->rename($keyfile, $baseDir . '/keyfiles/' . $ownerPath);
// handle share-keys
if ($timestamp) {
$sharekey .= '.d' . $timestamp;
}
$size += self::calculateSize(new \OC\Files\View($sharekey));
$rootView->rename($sharekey, $baseDir . '/share-keys/' . $ownerPath);
} else {