caldav-adapter 8.2.2 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/tags.js
CHANGED
|
@@ -216,6 +216,9 @@ module.exports = function (options) {
|
|
|
216
216
|
doc: 'https://tools.ietf.org/html/rfc4791#section-9.6',
|
|
217
217
|
async resp({ event, ctx, calendar }) {
|
|
218
218
|
const ics = await options.data.buildICS(ctx, event, calendar);
|
|
219
|
+
// Wrap iCalendar data in CDATA to prevent XML parsing issues
|
|
220
|
+
// This ensures that the iCalendar content is treated as character data
|
|
221
|
+
// and not parsed as XML, preventing malformed XML errors
|
|
219
222
|
return {
|
|
220
223
|
[buildTag(cal, 'calendar-data')]: { $cdata: ics }
|
|
221
224
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "caldav-adapter",
|
|
3
3
|
"description": "CalDAV server for Node.js and Koa. Modernized and maintained for Forward Email.",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.3",
|
|
5
5
|
"author": "Sanders DeNardi and Forward Email LLC",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Sanders DeNardi <sedenardi@gmail.com> (http://www.sandersdenardi.com/)",
|
|
@@ -23,7 +23,7 @@ module.exports = function (options) {
|
|
|
23
23
|
'D:getetag': options.data.getETag(ctx, calendar)
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
'CAL:calendar-data': ics
|
|
26
|
+
'CAL:calendar-data': { $cdata: ics }
|
|
27
27
|
}
|
|
28
28
|
]);
|
|
29
29
|
}
|
|
@@ -52,7 +52,7 @@ module.exports = function (options) {
|
|
|
52
52
|
'D:getetag': options.data.getETag(ctx, calendar)
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
'CAL:calendar-data': ics
|
|
55
|
+
'CAL:calendar-data': { $cdata: ics }
|
|
56
56
|
}
|
|
57
57
|
]);
|
|
58
58
|
};
|