Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-03-24 20:01:04 +0400
committerArthur Schiwon <blizzz@owncloud.com>2013-03-26 00:43:51 +0400
commite63a12a4812e1a738f7e586664b33bb95c81c473 (patch)
tree5396b4fe54f4bf6c8133ce28d41cbef6b8e19123
parent56302ff9cfc66c202cb8b81f69f97f88c9e95c0d (diff)
Cache: fix property path for getting legacy etag
-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 90f1803ebe3..8dba15ab960 100644
--- a/lib/files/cache/legacy.php
+++ b/lib/files/cache/legacy.php
@@ -83,7 +83,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 {