diff --git a/react/features/calendar-sync/middleware.js b/react/features/calendar-sync/middleware.js index 2a5cd50f0..ceecaffdf 100644 --- a/react/features/calendar-sync/middleware.js +++ b/react/features/calendar-sync/middleware.js @@ -192,7 +192,11 @@ function _getURLFromEvent(event, knownDomains) { const matches = urlRegExp.exec(field) || schemeRegExp.exec(field); if (matches) { - return matches[0]; + const url = parseURIString(matches[0]); + + if (url) { + return url.toString(); + } } } }