Index: lib/synchronizer.js |
=================================================================== |
--- a/lib/synchronizer.js |
+++ b/lib/synchronizer.js |
@@ -206,9 +206,18 @@ |
// Process parameters |
if (params.homepage) |
{ |
- let uri = Utils.makeURI(params.homepage); |
- if (uri && (uri.scheme == "http" || uri.scheme == "https")) |
- subscription.homepage = uri.spec; |
+ let url; |
+ try |
+ { |
+ url = new URL(params.homepage); |
+ } |
+ catch (e) |
+ { |
+ url = null; |
+ } |
+ |
+ if (url && (url.protocol == "http" || url.protocol == "https")) |
+ subscription.homepage = url.href; |
} |
if (params.title) |