Also trim the name

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/32580/head
Joas Schilling 3 years ago
parent ba684f5c58
commit 2c670f9cf9
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      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')) {

Loading…
Cancel
Save