mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
normalize strings before calculation hashes, #4435
This commit is contained in:
parent
93dcce2217
commit
a6036859b8
@ -63,6 +63,8 @@ function isElectron() {
|
||||
}
|
||||
|
||||
function hash(text) {
|
||||
text = text.normalize();
|
||||
|
||||
return crypto.createHash('sha1').update(text).digest('base64');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user