diff --git a/lib/private/Repair/NC13/RepairInvalidPaths.php b/lib/private/Repair/NC13/RepairInvalidPaths.php index 57a528707b..59115d1a1c 100644 --- a/lib/private/Repair/NC13/RepairInvalidPaths.php +++ b/lib/private/Repair/NC13/RepairInvalidPaths.php @@ -88,11 +88,11 @@ class RepairInvalidPaths implements IRepairStep { $this->getIdQuery = $builder->select('fileid') ->from('filecache') ->where($builder->expr()->eq('storage', $builder->createParameter('storage'))) - ->andWhere($builder->expr()->eq('path', $builder->createParameter('path'))); + ->andWhere($builder->expr()->eq('path_hash', $builder->createParameter('path_hash'))); } $this->getIdQuery->setParameter('storage', $storage, IQueryBuilder::PARAM_INT); - $this->getIdQuery->setParameter('path', $path); + $this->getIdQuery->setParameter('path_hash', md5($path)); return $this->getIdQuery->execute()->fetchColumn(); }