aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-08-20 13:20:47 +0200
committerAnna Larch <anna@nextcloud.com>2024-08-22 12:15:51 +0200
commit3ff7d64fda2aa8885331ba23e310d61091f95587 (patch)
treea8e1978e581d10afcebb3b377747421bf5bd61e6 /apps/dav/lib
parentebe2429c0afdb8b1d024dbb053b54da9ef15422a (diff)
downloadnextcloud-server-3ff7d64fda2aa8885331ba23e310d61091f95587.tar.gz
nextcloud-server-3ff7d64fda2aa8885331ba23e310d61091f95587.zip
fix(caldav): limit property length
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib')
-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 fd6dc401e18..70895ac2c43 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3214,7 +3214,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();
}