aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-11-25 19:01:41 +0100
committerGitHub <noreply@github.com>2024-11-25 19:01:41 +0100
commit97540aea9d24345d4db1358c0e0fa6a78ef4a1ec (patch)
tree75cef603fe66529a75ab91c4d6eb9156f3145d71
parent62fc9909f540b9b1752df9b3aca8df93c5ab71f4 (diff)
parent2a1177a2756b5338bd51bedc086ddb1b6fc1de9d (diff)
downloadnextcloud-server-97540aea9d24345d4db1358c0e0fa6a78ef4a1ec.tar.gz
nextcloud-server-97540aea9d24345d4db1358c0e0fa6a78ef4a1ec.zip
Merge pull request #49478 from nextcloud/backport/49454/stable28
[stable28] fix: invalid usage of IQueryBuilder::createNamedParameter()
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 7bef0becfc4..6268693649c 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3529,9 +3529,9 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
// delete all links that match object uid's
$cmd = $this->db->getQueryBuilder();
$cmd->delete($this->dbObjectInvitationsTable)
- ->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
- foreach (array_chunk($allIds, 1000) as $chunckIds) {
- $cmd->setParameter('uids', $chunckIds, IQueryBuilder::PARAM_INT_ARRAY);
+ ->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
+ foreach (array_chunk($allIds, 1000) as $chunkIds) {
+ $cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_STR_ARRAY);
$cmd->executeStatement();
}
}
@@ -3548,7 +3548,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
protected function purgeObjectInvitations(string $eventId): void {
$cmd = $this->db->getQueryBuilder();
$cmd->delete($this->dbObjectInvitationsTable)
- ->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId)));
+ ->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
$cmd->executeStatement();
}
}