]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also trim the name 32580/head
authorJoas Schilling <coding@schilljs.com>
Wed, 25 May 2022 06:06:32 +0000 (08:06 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 25 May 2022 06:06:32 +0000 (08:06 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/CalDAV/Activity/Provider/Event.php

index 5789a1f220f7e0ca25f7138c0d8be0f7831210fa..3ed591219af0ddcb49bbe60a3eca109de473a39c 100644 (file)
@@ -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')) {