escaping more characters in xml, see #1520

This commit is contained in:
antelle 2020-05-28 10:54:52 +02:00
parent b2a6e1180c
commit 96263c11ec
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class EntryModel extends Model {
if (val && !val.isProtected && val.indexOf('\x1A') >= 0) {
// https://github.com/keeweb/keeweb/issues/910
// eslint-disable-next-line no-control-regex
val = val.replace(/\x1A/g, '');
val = val.replace(/[\x00-\x1F]/g, '');
}
return val;
}