Browse Source

Calendar list shouldn't show unnormalised URIs

master
zbettenbuk 7 years ago
parent
commit
8c0bb377ba
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      react/features/calendar-sync/middleware.js

+ 5
- 1
react/features/calendar-sync/middleware.js View File

@@ -192,7 +192,11 @@ function _getURLFromEvent(event, knownDomains) {
192 192
             const matches = urlRegExp.exec(field) || schemeRegExp.exec(field);
193 193
 
194 194
             if (matches) {
195
-                return matches[0];
195
+                const url = parseURIString(matches[0]);
196
+
197
+                if (url) {
198
+                    return url.toString();
199
+                }
196 200
             }
197 201
         }
198 202
     }

Loading…
Cancel
Save