Skip to content

Commit db4fad6

Browse files
marcelklehrMarcelRobitaille
authored andcommitted
fix(GoogleCalendarAPIService): Sanitize calendar name
fixes nextcloud#166
1 parent dbf9433 commit db4fad6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/GoogleCalendarAPIService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function importCalendar(string $userId, string $calId, string $calName, ?
209209
$params['{http://apple.com/ns/ical/}calendar-color'] = $color;
210210
}
211211

212-
$newCalName = trim($calName) . ' (' . $this->l10n->t('Google Calendar import') .')';
212+
$newCalName = urlencode(trim($calName) . ' (' . $this->l10n->t('Google Calendar import') .')');
213213
$ncCalId = $this->calendarExists($userId, $newCalName);
214214
$calendarIsNew = is_null($ncCalId);
215215
if (is_null($ncCalId)) {

0 commit comments

Comments
 (0)