diff --git a/web/javascript/inspector.js b/web/javascript/inspector.js index f14cd910f..5e6c74ca6 100644 --- a/web/javascript/inspector.js +++ b/web/javascript/inspector.js @@ -435,8 +435,7 @@ function Inspector(controller) { if (!str) { str = none; } - const uri = new URL(str); - if (uri.protocol == 'http:' || uri.protocol == 'https:') { + if (str.startsWith('https://') || str.startsWith('http://')) { str = encodeURI(str); setInnerHTML(e.comment_lb, '' + str + ''); } else {