]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cache: fix property path for getting legacy etag
authorRobin Appelman <icewind@owncloud.com>
Sun, 24 Mar 2013 16:01:04 +0000 (17:01 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 27 Mar 2013 18:18:13 +0000 (19:18 +0100)
lib/files/cache/legacy.php

index 55e40e1af7205db0d1ca0e2379be787be20b31c4..d9ba36bb3a44e572ab98b9e24972a8d7d460cea4 100644 (file)
@@ -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 {