fix #467: don't remove spaces in custom fields

This commit is contained in:
antelle 2017-11-26 20:52:00 +01:00
parent 78fed18d75
commit 42bea50907
2 changed files with 3 additions and 1 deletions

View File

@ -37,9 +37,10 @@ const FieldViewCustom = FieldViewText.extend({
delete this.input;
this.stopListening(Backbone, 'click', this.fieldValueBlur);
if (typeof newVal === 'string') {
newVal = $.trim(newVal);
if (this.isProtected) {
newVal = kdbxweb.ProtectedValue.fromString(newVal);
} else {
newVal = $.trim(newVal);
}
}
FieldView.prototype.endEdit.call(this, newVal, extra);

View File

@ -11,6 +11,7 @@ Release notes
`*` show usernames in entry list
`*` password can be hidden as other fields
`*` clear clipboard on exit
`*` don't remove spaces in custom fields
##### v1.5.6 (2017-08-31)
`-` fix #722: hang on start in desktop