From 0eda75a19378302fcdadd72cf6537745fd7ee736 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sat, 20 Aug 2011 15:48:48 -0400 Subject: [PATCH] One more bug fix in clearFolderSizeCache() --- apps/files_sharing/sharedstorage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index b56245aab8c..48fc59aac3d 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -267,8 +267,9 @@ class OC_Filestorage_Shared extends OC_Filestorage { if ($this->is_file($path)) { $path = dirname($path); } + $dbpath = rtrim($this->datadir.$path, "/"); $query = OC_DB::prepare("DELETE FROM *PREFIX*foldersize WHERE path = ?"); - $result = $query->execute(array($this->datadir.$path)); + $result = $query->execute(array($dbpath)); if ($path != "/" && $path != "") { $parts = explode("/", $path); $part = array_pop($parts); -- 2.39.5