aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-08-20 13:20:47 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-08-22 11:20:49 +0000
commit975f1f596f40dd9e25611c71034d1753d8b84fd6 (patch)
treea7f2b37f50b5cbce0af6317e798768edc5c8763c /apps
parent139b93216f705d6b93279d972e360478db5354c9 (diff)
downloadnextcloud-server-975f1f596f40dd9e25611c71034d1753d8b84fd6.tar.gz
nextcloud-server-975f1f596f40dd9e25611c71034d1753d8b84fd6.zip
fix(caldav): limit property length
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 79e1025c5ee..aa15bce01cc 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3223,7 +3223,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$query->setParameter('name', $property->name);
$query->setParameter('parameter', null);
- $query->setParameter('value', $value);
+ $query->setParameter('value', mb_strcut($value, 0, 254));
$query->executeStatement();
}