Also trim the name

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-05-25 08:06:32 +02:00 committed by backportbot-nextcloud[bot]
parent d29bb5ff9d
commit 33d003d032

View 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')) {