Calendar list shouldn't show unnormalised URIs
This commit is contained in:
parent
fc25125667
commit
8c0bb377ba
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue