diff --git a/server.js b/server.js index 93815cb..dc565e4 100644 --- a/server.js +++ b/server.js @@ -104,7 +104,7 @@ END:VEVENT fs.writeFileSync(`${MERGED_CALENDARS_DIR}/${filename}`, icalString); // Save the user input and generated ID in a separate JSON file - saveCalendarData(calendarId, linkGroupName, calendars); + saveCalendarData(sanitizedLinkGroupName, linkGroupName, calendars); res.json({ url: `${req.protocol}://${req.get('host')}/calendar/${calendarId}` }); } catch (error) {