diff options
-rw-r--r-- | apps/files_sharing/lib/Command/CleanupRemoteStorages.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Command/CleanupRemoteStorages.php b/apps/files_sharing/lib/Command/CleanupRemoteStorages.php index a94832c1bb9..504caba1417 100644 --- a/apps/files_sharing/lib/Command/CleanupRemoteStorages.php +++ b/apps/files_sharing/lib/Command/CleanupRemoteStorages.php @@ -142,13 +142,13 @@ class CleanupRemoteStorages extends Command { ->where($queryBuilder->expr()->like( 'id', // match all 'shared::' + 32 characters storages - $queryBuilder->createNamedParameter('shared::________________________________', IQueryBuilder::PARAM_STR), + $queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::') . str_repeat('_', 32)), IQueryBuilder::PARAM_STR) ) ->andWhere($queryBuilder->expr()->notLike( 'id', // but not the ones starting with a '/', they are for normal shares - $queryBuilder->createNamedParameter('shared::/%', IQueryBuilder::PARAM_STR), + $queryBuilder->createNamedParameter($this->connection->escapeLikeParameter('shared::/') . '%'), IQueryBuilder::PARAM_STR) )->orderBy('numeric_id'); $query = $queryBuilder->execute(); |