Lacked encoding of the URL components for iso8601 dates (#669)

Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
Alex van AndelandBailey Pumfleet authored and GitHub committed 2021-09-16 11:14:48 +01:00
1 parent 537e2951dc
commit 7ae85fefee
1 file changed
+3 -1
+3 -1
View File
@@ -214,7 +214,9 @@ const MicrosoftOffice365Calendar = (credential): CalendarApiAdapter => {
return {
getAvailability: (dateFrom, dateTo, selectedCalendars) => {
const filter = "?startdatetime=" + dateFrom + "&enddatetime=" + dateTo;
const filter = `?startdatetime=${encodeURIComponent(dateFrom)}&enddatetime=${encodeURIComponent(
dateTo
)}`;
return auth
.getToken()
.then((accessToken) => {