Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Calendar list shouldn't show unnormalised URIs

zbettenbuk8c0bb377bab9
diff --git a/react/features/calendar-sync/middleware.js b/react/features/calendar-sync/middleware.js
index 2a5cd50f0a..ceecaffdf1 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();
+ }
}
}
}