aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-08-03 16:34:56 +0200
committerDaniel <mail@danielkesselberg.de>2023-08-10 21:45:57 +0200
commit378a0f983739bf2a2a2a8202fc4277dea2b84bfa (patch)
treebd9e523bb8f9d63f7e19a386fb1f9c570d4cbfa6 /apps/dav/lib
parenta38a86e5c42660da3db9a6b2a94da2bc1b329e88 (diff)
downloadnextcloud-server-378a0f983739bf2a2a2a8202fc4277dea2b84bfa.tar.gz
nextcloud-server-378a0f983739bf2a2a2a8202fc4277dea2b84bfa.zip
fix: close cursor after reading the invitation
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Controller/InvitationResponseController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Controller/InvitationResponseController.php b/apps/dav/lib/Controller/InvitationResponseController.php
index 3cf2e658621..0ec630883dc 100644
--- a/apps/dav/lib/Controller/InvitationResponseController.php
+++ b/apps/dav/lib/Controller/InvitationResponseController.php
@@ -169,8 +169,9 @@ class InvitationResponseController extends Controller {
$query->select('*')
->from('calendar_invitations')
->where($query->expr()->eq('token', $query->createNamedParameter($token)));
- $stmt = $query->execute();
+ $stmt = $query->executeQuery();
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
+ $stmt->closeCursor();
if (!$row) {
return null;