Skip to content
Snippets Groups Projects
Commit 1a874b91 authored by Robin Appelman's avatar Robin Appelman Committed by Arthur Schiwon
Browse files

Cache: fix property path for getting legacy etag

parent 19c7d9c3
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment