Lacked encoding of the URL components for iso8601 dates (#669)
Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
1 parent
537e2951dc
commit
7ae85fefee
1 file changed
+3
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user