diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-25 08:06:32 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-25 08:06:32 +0200 |
commit | 2c670f9cf96f7c40860f4a81a5a855c78215e7d2 (patch) | |
tree | cee36383bd05b3b354405bf3ecf45b0f58f7404e /apps/dav | |
parent | ba684f5c58de8679441e9e63859e93c0c9eeac9d (diff) | |
download | nextcloud-server-2c670f9cf96f7c40860f4a81a5a855c78215e7d2.tar.gz nextcloud-server-2c670f9cf96f7c40860f4a81a5a855c78215e7d2.zip |
Also trim the name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CalDAV/Activity/Provider/Event.php | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |