diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-03-24 17:01:04 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-25 21:43:51 +0100 |
commit | e63a12a4812e1a738f7e586664b33bb95c81c473 (patch) | |
tree | 5396b4fe54f4bf6c8133ce28d41cbef6b8e19123 | |
parent | 56302ff9cfc66c202cb8b81f69f97f88c9e95c0d (diff) | |
download | nextcloud-server-e63a12a4812e1a738f7e586664b33bb95c81c473.tar.gz nextcloud-server-e63a12a4812e1a738f7e586664b33bb95c81c473.zip |
Cache: fix property path for getting legacy etag
-rw-r--r-- | lib/files/cache/legacy.php | 2 |
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 { |