mirror of https://github.com/keeweb/keeweb.git
fix #1463: copying the original url instead of adding https:
This commit is contained in:
parent
8d2640d99d
commit
d6aab0c470
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue