Skip to content

Commit 8bb7f39

Browse files
committed
fix: use mount_point_hash instead of mount_point in removeMount
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 8032ad8 commit 8bb7f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Config/UserMountCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function getMountsInPath(IUser $user, string $path): array {
522522
public function removeMount(string $mountPoint): void {
523523
$query = $this->connection->getQueryBuilder();
524524
$query->delete('mounts')
525-
->where($query->expr()->eq('mount_point', $query->createNamedParameter($mountPoint)));
525+
->where($query->expr()->eq('mount_point_hash', $query->createNamedParameter(hash('xxh128', $mountPoint))));
526526
$query->executeStatement();
527527
}
528528

0 commit comments

Comments
 (0)