Cache: fix property path for getting legacy etag
This commit is contained in:
parent
19c7d9c3dc
commit
1a874b9106
1 changed files with 1 additions and 1 deletions
2
lib/files/cache/legacy.php
vendored
2
lib/files/cache/legacy.php
vendored
|
@ -90,7 +90,7 @@ class Legacy {
|
||||||
$relativePath = '';
|
$relativePath = '';
|
||||||
}
|
}
|
||||||
$query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND propertypath = ? AND propertyname = "{DAV:}getetag"');
|
$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()) {
|
if ($row = $result->fetchRow()) {
|
||||||
return trim($row['propertyvalue'], '"');
|
return trim($row['propertyvalue'], '"');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue