Cache: fix property path for getting legacy etag

This commit is contained in:
Robin Appelman 2013-03-24 17:01:04 +01:00 committed by Arthur Schiwon
parent 19c7d9c3dc
commit 1a874b9106
1 changed files with 1 additions and 1 deletions

View 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 {