From: Robin Appelman Date: Sun, 24 Mar 2013 16:01:04 +0000 (+0100) Subject: Cache: fix property path for getting legacy etag X-Git-Tag: v6.0.0alpha2~996 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a874b910642e3a174ecdf355ec1749bc6b3b716;p=nextcloud-server.git Cache: fix property path for getting legacy etag --- diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php index 55e40e1af72..d9ba36bb3a4 100644 --- a/lib/files/cache/legacy.php +++ b/lib/files/cache/legacy.php @@ -90,7 +90,7 @@ class Legacy { $relativePath = ''; } $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND propertypath = ? AND propertyname = "{DAV:}getetag"'); - $result = $query->execute(array($user, $relativePath)); + $result = $query->execute(array($user, '/' . $relativePath)); if ($row = $result->fetchRow()) { return trim($row['propertyvalue'], '"'); } else {