summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-03-24 17:01:04 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-27 19:18:13 +0100
commit1a874b910642e3a174ecdf355ec1749bc6b3b716 (patch)
treea4c8a6ed5aa775720f20d6359b0bd916373e2fca /lib/files
parent19c7d9c3dcbce1c6b2d38f82d61a8d95a800a65a (diff)
downloadnextcloud-server-1a874b910642e3a174ecdf355ec1749bc6b3b716.tar.gz
nextcloud-server-1a874b910642e3a174ecdf355ec1749bc6b3b716.zip
Cache: fix property path for getting legacy etag
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/legacy.php2
1 files changed, 1 insertions, 1 deletions
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 {