From 2c670f9cf96f7c40860f4a81a5a855c78215e7d2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 May 2022 08:06:32 +0200 Subject: [PATCH] Also trim the name Signed-off-by: Joas Schilling --- apps/dav/lib/CalDAV/Activity/Provider/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Event.php b/apps/dav/lib/CalDAV/Activity/Provider/Event.php index 5789a1f220f..3ed591219af 100644 --- a/apps/dav/lib/CalDAV/Activity/Provider/Event.php +++ b/apps/dav/lib/CalDAV/Activity/Provider/Event.php @@ -88,7 +88,7 @@ class Event extends Base { $params = [ 'type' => 'calendar-event', 'id' => $eventData['id'], - 'name' => $eventData['name'] !== '' ? $eventData['name'] : $this->l->t('Untitled event'), + 'name' => trim($eventData['name']) !== '' ? $eventData['name'] : $this->l->t('Untitled event'), ]; if (isset($eventData['link']) && is_array($eventData['link']) && $this->appManager->isEnabledForUser('calendar')) { -- 2.39.5