From d6aab0c470211f53f492f071629bb7a1f0028415 Mon Sep 17 00:00:00 2001 From: antelle Date: Thu, 23 Apr 2020 18:30:17 +0200 Subject: [PATCH] fix #1463: copying the original url instead of adding https: --- app/scripts/views/fields/field-view-url.js | 6 +++--- release-notes.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/scripts/views/fields/field-view-url.js b/app/scripts/views/fields/field-view-url.js index dedaf331..d0994ad4 100644 --- a/app/scripts/views/fields/field-view-url.js +++ b/app/scripts/views/fields/field-view-url.js @@ -22,8 +22,8 @@ class FieldViewUrl extends FieldViewText { } fixUrl(url) { - const proto = new URL(url, 'dummy://').protocol; - if (proto === 'dummy:') { + const proto = new URL(url, 'ws://x').protocol; + if (proto === 'ws:') { return 'https://' + url; } if (!AllowedProtocols.includes(proto)) { @@ -37,7 +37,7 @@ class FieldViewUrl extends FieldViewText { } getTextValue() { - return this.fixUrl(this.value); + return this.value; } } diff --git a/release-notes.md b/release-notes.md index b67b035b..6e4cc324 100644 --- a/release-notes.md +++ b/release-notes.md @@ -3,6 +3,7 @@ Release notes ##### v1.15.0 (WIP) `+` #557: Argon2 speed improvements in desktop apps `+` #1400: auto-apply tag when creating new entry in tag view +`-` fix #1463: copying the original url instead of adding https: ##### v1.14.0 (2020-04-18) `+` using OAuth authorization code grant for all storage providers